cleanup
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 27 Jan 2014 08:50:00 +0000 (09:50 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 27 Jan 2014 08:50:00 +0000 (09:50 +0100)
system/TestMain.py
system/run_log

index cf8f670..ff6098f 100755 (executable)
@@ -527,7 +527,6 @@ steps refer to a method in TestPlc or to a step_* module
     def main(self):
         try:
             success=self.run()
-            print 'run has returned %s'%success
             if success == 'SUCCESS':    return 0
             elif success == 'IGNORED':  return 2
             else:                       return 1
@@ -540,5 +539,4 @@ steps refer to a method in TestPlc or to a step_* module
 
 if __name__ == "__main__":
     exit_code = TestMain().main()
-    print 'run_log is exiting',exit_code
     sys.exit(exit_code)
index e170463..08833aa 100755 (executable)
@@ -14,7 +14,9 @@ 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
 exit $retcod