X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Ftarget_runner.sh;h=c61bbc056ee4e44cafa403fcdb468901fc4691b5;hb=8ddda6bbdd50689d91bc1b1672bf8a0a7092b7ab;hp=2678630df59c98ce01ec3699bdf453b24a4c2cf7;hpb=36c116591de5ea8cb34d9fd4e0c776c9e2525217;p=feisty_meow.git diff --git a/scripts/clam/target_runner.sh b/scripts/clam/target_runner.sh old mode 100755 new mode 100644 index 2678630d..c61bbc05 --- a/scripts/clam/target_runner.sh +++ b/scripts/clam/target_runner.sh @@ -23,8 +23,19 @@ if [ ! -z "${RUN_TARGETS}" -a ! -z "${RUN_ALL_TESTS}" ]; then total_exitval=0; for program_name in ${RUN_TARGETS}; do base=$(basename $program_name); - "$program_name"; - exitval=$?; + if [ "$OPERATING_SYSTEM" == "WIN32" ]; then + # extra step to force win32 applications to stay held in our grip, + # since they will float off and appear to have stopped when + # run by cygwin. but by grabbing the i/o stream, we know it's + # running until it's done. + "$program_name" 2>&1 | cat + # we care about the exit status of the first process in the pipe, + # which is the app being run. + exitval=${PIPESTATUS[0]} + else + "$program_name" + exitval=$?; + fi if [ $exitval -ne 0 ]; then echo "ERROR: $program_name exits with $exitval at $(date)"; total_exitval=$(($total_exitval + 1));