From 0a21b9b2944e5d7073c950d30ca96a7035509b9d Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 9 Aug 2013 11:29:31 -0400 Subject: [PATCH] Simplify test-all: just use the script names as banners. (imported from commit 20e48c468a5ccae63c64385dc114a4f8c892fc61) --- tools/test-all | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/test-all b/tools/test-all index a6418fd6a4..af6b2b8c57 100755 --- a/tools/test-all +++ b/tools/test-all @@ -3,22 +3,20 @@ cd "$(dirname "$0")"/.. function run { - desc="$1" - shift - - echo "Running $desc" + echo '----' + echo "Running $@" if ! "$@"; then - printf "\n\e[31;1mFAILED\e[0m $desc\n" + printf "\n\e[31;1mFAILED\e[0m $@\n" exit 1 else echo fi } -run 'clean repo' ./tools/clean-repo -run 'lint checkers' ./tools/check-all -run 'js unit tests' ./tools/test-js-with-node -run 'server tests' ./tools/test-backend -run 'web client tests' ./zerver/tests/frontend/run +run ./tools/clean-repo +run ./tools/check-all +run ./tools/test-js-with-node +run ./tools/test-backend +run ./zerver/tests/frontend/run printf '\n\e[32mAll OK!\e[0m\n'