Browse Source

Exit with test exit status (last bad uin case of sub-tests)

Alois Mahdal 10 years ago
parent
commit
93e1d64499
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      bin/eemk.in

+ 8
- 0
bin/eemk.in View File

12
 
12
 
13
 ENVIRON_SCRIPT="$HOME/.eemk-env"
13
 ENVIRON_SCRIPT="$HOME/.eemk-env"
14
 FFOO_VERBOSE=true
14
 FFOO_VERBOSE=true
15
+TEST_STATUS=0
15
 
16
 
16
 # tmp needs to be shared to children
17
 # tmp needs to be shared to children
17
 if test -d "$TMP_DIR";
18
 if test -d "$TMP_DIR";
107
               do
108
               do
108
                   pushd "$(dirname $path)";
109
                   pushd "$(dirname $path)";
109
                   nosetests --nocapture -v "$(basename $path)"
110
                   nosetests --nocapture -v "$(basename $path)"
111
+                  es=$?
112
+                  test $es -gt 0$TEST_STATUS && TEST_STATUS=$es
110
                   popd
113
                   popd
111
               done
114
               done
112
         stop_cimserver
115
         stop_cimserver
177
         TERM=xterm reset
180
         TERM=xterm reset
178
         pushd "proj/$2"
181
         pushd "proj/$2"
179
         make run > 1
182
         make run > 1
183
+        es=$?
184
+        test $es -gt 0$TEST_STATUS && TEST_STATUS=$es
180
         popd
185
         popd
181
         ;;
186
         ;;
182
 
187
 
183
     bkrun)
188
     bkrun)
184
         pushd "proj/$2"
189
         pushd "proj/$2"
185
         make run
190
         make run
191
+        es=$?
192
+        test $es -gt 0$TEST_STATUS && TEST_STATUS=$es
186
         popd
193
         popd
187
         ;;
194
         ;;
188
 
195
 
224
     collect_artifacts artifacts
231
     collect_artifacts artifacts
225
     rm -rf $TMP_DIR
232
     rm -rf $TMP_DIR
226
 fi
233
 fi
234
+exit $TEST_STATUS