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
if __name__ == "__main__":
exit_code = TestMain().main()
- print 'run_log is exiting',exit_code
sys.exit(exit_code)
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