From 4792cc5f63e9fa02bb13773ecebe460de7004f16 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 20 Nov 2021 00:44:13 +0000 Subject: [PATCH] test runner: print time before/after tests When a timeout occurs we actually can't see when the test started/stopped. Print the time. --- test/run-integration-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index 6746d94ffe..2a2b075aa3 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -79,13 +79,13 @@ if [[ $args =~ [a-z] ]]; then pass_deny_list "$TEST" || continue start=$(date +%s) - echo -e "\n--x-- Running $TEST --x--" + echo -e "\n[$(date +%R:%S)] --x-- Running $TEST --x--" set +e # shellcheck disable=SC2086 ( set -x ; make -C "$TEST" $args ) RESULT=$? set -e - echo "--x-- Result of $TEST: $RESULT --x--" + echo "[$(date +%R:%S)] --x-- Result of $TEST: $RESULT --x--" results["$TEST"]="$RESULT" times["$TEST"]=$(( $(date +%s) - start ))