Changeset 96c37b31 in rtems-testing for rtems


Ignore:
Timestamp:
Mar 26, 2015, 10:24:42 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
3c7ecee
Parents:
22a9856
Message:

bit_rtems: Fix bug for exit status and make cleaning build directory optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems/bit_rtems

    r22a9856 r96c37b31  
    378378build_status=0
    379379
    380 export  PATH=$PATH:${INSTALL_POINT}/bin
    381380if [ ${verbose} = yes ]; then
    382381  echo "Initiating ${MAKE} .."
     
    406405     ${MAKE} -j${njobs} ${MAKE_KEEP_GOING_ARG} ${MAKE_DEBUG_ARG} \
    407406             RTEMS_BSP=
    408      check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
     407     build_status=$?
     408     check_fatal ${build_status} "failed ${MAKE} ${MAKE_DEBUG_ARG}."
    409409     BSP_TO_TEST=
    410410     ;;
     
    413413     ${MAKE} -j${njobs} ${MAKE_KEEP_GOING_ARG} ${MAKE_DEBUG_ARG} \
    414414             RTEMS_BSP=${BSP_TO_TEST}
    415      check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
     415     build_status=$?
     416     check_fatal ${build_status} "failed ${MAKE} ${MAKE_DEBUG_ARG}."
    416417     ;;
    417418esac
     
    438439     ;;
    439440esac
    440 build_status=$?
    441441
    442442case ${target} in
     
    579579    tar cjf ../log/${target}-${BSP_TO_TEST}-logs.tar.bz2 \
    580580        ${target}-${BSP_TO_TEST}/log
    581  
    582 
    583     # Should be back at the top of the build tree
    584   fi
    585581fi
    586582
     
    663659  fi
    664660fi
     661
     662# Should be back at the top of the build tree
     663if [ ${build_status} -eq 0 -a \
     664     ${ENABLE_CLEAN_ON_BUILD_PASSED} = "yes" ] ; then
     665  echo "Build OK - Removing ${BUILDDIR}"
     666  cd ..
     667  rm -rf ${BUILDDIR}
     668fi
     669fi
     670
    665671exit 0
Note: See TracChangeset for help on using the changeset viewer.