Source stackrc in exercises.

Exit with error if there are failed tests.
This commit is contained in:
James E. Blair 2011-11-10 15:11:28 -08:00
parent 1ec915e6b5
commit c639ef0123

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./stackrc
# Run everything in the exercises/ directory that isn't explicitly disabled # Run everything in the exercises/ directory that isn't explicitly disabled
# comma separated list of script basenames to skip # comma separated list of script basenames to skip
@ -44,3 +45,7 @@ done
for script in $failures; do for script in $failures; do
echo FAILED $script echo FAILED $script
done done
if [ -n "$failures" ] ; then
exit 1
fi