summaryrefslogtreecommitdiffstats
path: root/test/run-integration-tests.sh
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-11-20 01:44:13 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2021-11-22 10:05:00 +0100
commit4792cc5f63e9fa02bb13773ecebe460de7004f16 (patch)
treeb29e1badc77e0d764e51753dbe4c437738bf9ab7 /test/run-integration-tests.sh
parentanalyze: fix printing config when there is no main config file (diff)
downloadsystemd-4792cc5f63e9fa02bb13773ecebe460de7004f16.tar.xz
systemd-4792cc5f63e9fa02bb13773ecebe460de7004f16.zip
test runner: print time before/after tests
When a timeout occurs we actually can't see when the test started/stopped. Print the time.
Diffstat (limited to 'test/run-integration-tests.sh')
-rwxr-xr-xtest/run-integration-tests.sh4
1 files 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 ))