From c639ef0123b7c46eb79f3955a77469b955e2f95d Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 10 Nov 2011 15:11:28 -0800 Subject: [PATCH] Source stackrc in exercises. Exit with error if there are failed tests. --- exercise.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 @@ done for script in $failures; do echo FAILED $script done + +if [ -n "$failures" ] ; then + exit 1 +fi