diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-10-24 19:21:16 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-10-24 19:21:26 -0400 |
commit | 7d2f0de93d71a0c043e4dc8ae754311643ac919a (patch) | |
tree | a8bcb50b5d3e6dc333f19a2509ebb86e8ccd7f41 | |
parent | 53b2d09fdbbcb9893319e0a7a1b762804163d15b (diff) | |
download | bfs-7d2f0de93d71a0c043e4dc8ae754311643ac919a.tar.xz |
tests.sh: Give some feedback while running.
-rwxr-xr-x | tests.sh | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 |