commit | c639ef0123b7c46eb79f3955a77469b955e2f95d | [log] [tgz] |
---|---|---|
author | James E. Blair <james.blair@rackspace.com> | Thu Nov 10 15:11:28 2011 -0800 |
committer | James E. Blair <james.blair@rackspace.com> | Thu Nov 10 15:11:28 2011 -0800 |
tree | abf53df79fbcf895df62fbb0ab02a3f841fe4b8c | |
parent | 1ec915e6b5307caf143417c1293966b68d51078e [diff] [blame] |
Source stackrc in exercises. Exit with error if there are failed tests.
diff --git a/exercise.sh b/exercise.sh index 7703f40..dd45c5a 100755 --- a/exercise.sh +++ b/exercise.sh
@@ -1,5 +1,6 @@ #!/usr/bin/env bash +source ./stackrc # Run everything in the exercises/ directory that isn't explicitly disabled # comma separated list of script basenames to skip @@ -44,3 +45,7 @@ for script in $failures; do echo FAILED $script done + +if [ -n "$failures" ] ; then + exit 1 +fi