test(examples): print error message on fail
This commit is contained in:
		| @@ -5,13 +5,15 @@ failed=0 | |||||||
| for example in $(find $1 -maxdepth 1 -name "*.py") | for example in $(find $1 -maxdepth 1 -name "*.py") | ||||||
| do | do | ||||||
|     echo  -n "$x" $example '... ' |     echo  -n "$x" $example '... ' | ||||||
|     export DISPLAY= && python $example --fast_dev_run 1 &> /dev/null |     export DISPLAY= && python $example --fast_dev_run 1 &> run_log.txt | ||||||
|     if [[ $? -ne 0 ]]; then |     if [[ $? -ne 0 ]]; then | ||||||
|         echo "FAILED!!" |         echo "FAILED!!" | ||||||
|  |         cat run_log.txt | ||||||
|         failed=1 |         failed=1 | ||||||
|     else |     else | ||||||
|         echo "SUCCESS!" |         echo "SUCCESS!" | ||||||
|     fi |     fi | ||||||
|  |     rm run_log.txt | ||||||
| done | done | ||||||
|  |  | ||||||
| exit $failed | exit $failed | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user