Browse code

Source stackrc in exercises. Exit with error if there are failed tests.

James E. Blair authored on 2011/11/11 08:11:28
Showing 1 changed files
... ...
@@ -1,5 +1,6 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
+source ./stackrc
3 4
 # Run everything in the exercises/ directory that isn't explicitly disabled
4 5
 
5 6
 # comma separated list of script basenames to skip
... ...
@@ -44,3 +45,7 @@ done
44 44
 for script in $failures; do
45 45
     echo FAILED $script
46 46
 done
47
+
48
+if [ -n "$failures" ] ; then
49
+    exit 1
50
+fi