From: Luca Boccassi Date: Sat, 20 Nov 2021 00:44:13 +0000 (+0000) Subject: test runner: print time before/after tests X-Git-Tag: v250-rc1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4792cc5f63e9fa02bb13773ecebe460de7004f16;p=thirdparty%2Fsystemd.git test runner: print time before/after tests When a timeout occurs we actually can't see when the test started/stopped. Print the time. --- diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index 6746d94ffef..2a2b075aa3a 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 ))