]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test runner: print time before/after tests
authorLuca Boccassi <luca.boccassi@microsoft.com>
Sat, 20 Nov 2021 00:44:13 +0000 (00:44 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Nov 2021 09:05:00 +0000 (09:05 +0000)
When a timeout occurs we actually can't see when the test started/stopped. Print the time.

test/run-integration-tests.sh

index 6746d94ffef21771d74787c84b098dd9149e3c33..2a2b075aa3a457ad067ee5fa6faab5249d8ce816 100755 (executable)
@@ -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 ))