Skip to content

Commit c639ef0

Browse files
committed
Source stackrc in exercises.
Exit with error if there are failed tests.
1 parent 1ec915e commit c639ef0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercise.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
source ./stackrc
34
# Run everything in the exercises/ directory that isn't explicitly disabled
45

56
# comma separated list of script basenames to skip
@@ -44,3 +45,7 @@ done
4445
for script in $failures; do
4546
echo FAILED $script
4647
done
48+
49+
if [ -n "$failures" ] ; then
50+
exit 1
51+
fi

0 commit comments

Comments
 (0)