From 7d2f0de93d71a0c043e4dc8ae754311643ac919a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 24 Oct 2016 19:21:16 -0400 Subject: tests.sh: Give some feedback while running. --- tests.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3