summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-10-24 19:21:16 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-10-24 19:21:26 -0400
commit7d2f0de93d71a0c043e4dc8ae754311643ac919a (patch)
treea8bcb50b5d3e6dc333f19a2509ebb86e8ccd7f41 /tests.sh
parent53b2d09fdbbcb9893319e0a7a1b762804163d15b (diff)
downloadbfs-7d2f0de93d71a0c043e4dc8ae754311643ac919a.tar.xz
tests.sh: Give some feedback while running.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index e61ffcc..a615346 100755
--- a/tests.sh
+++ b/tests.sh
@@ -393,10 +393,24 @@ function test_0069() {
for i in {1..69}; do
test="test_$(printf '%04d' $i)"
+
+ if [ -t 1 ]; then
+ printf '\r%s' "$test"
+ fi
+
("$test" "$dir")
status=$?
+
if [ $status -ne 0 ]; then
- echo "$test failed!" >&2
+ if [ -t 1 ]; then
+ echo " failed!"
+ else
+ echo "$test failed!"
+ fi
exit $status
fi
done
+
+if [ -t 1 ]; then
+ echo
+fi