mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
test runner: print time before/after tests
When a timeout occurs we actually can't see when the test started/stopped. Print the time.
This commit is contained in:
parent
0895e87348
commit
4792cc5f63
@ -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 ))
|
||||
|
Loading…
x
Reference in New Issue
Block a user