ソースを参照

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

Alois Mahdal 10 年 前
コミット
93e1d64499
共有1 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 8
    0
      bin/eemk.in

+ 8
- 0
bin/eemk.in ファイルの表示

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