print out exit codes
[tests.git] / system / run_log
index e170463..0003226 100755 (executable)
@@ -14,7 +14,10 @@ rm -f logs/$runlast; (cd logs; ln -s $runfile $runlast)
 rm -f logs/$tracelast; (cd logs; ln -s $tracefile $tracelast)
 python -u TestMain.py -t logs/$tracefile "$@" &> logs/$runfile ; retcod=$?
 cat logs/$runfile
-[ "$retcod" == 0 ] && touch logs/success
+case "$retcod" in 
+    0) touch logs/success ;;
+    2) touch logs/warning ;;
+esac
 
-echo "run_log is exiting" $retcod
+echo run_log exit_code $retcod
 exit $retcod