[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] CI: Add timing to junit
commit 321b74f29d76569efbc50cbf38ec5341d672c7b7 Author: Anthony PERARD <anthony.perard@xxxxxxxxxx> AuthorDate: Mon Jun 2 14:55:05 2025 +0200 Commit: Anthony PERARD <anthony.perard@xxxxxxxxxx> CommitDate: Fri Jun 6 12:07:26 2025 +0200 CI: Add timing to junit Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- automation/scripts/run-tools-tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests index cbdd79f6db..15766ca0f0 100755 --- a/automation/scripts/run-tools-tests +++ b/automation/scripts/run-tools-tests @@ -18,9 +18,12 @@ for f in "$1"/*; do continue fi echo "Running $f" - printf ' <testcase name="%s">\n' "$f" >> "$xml_out" + time_start=$EPOCHREALTIME "$f" 2>&1 | tee /tmp/out ret=${PIPESTATUS[0]} + time_end=$EPOCHREALTIME + time_delta="$(bc <<<"$time_end - $time_start")" + printf ' <testcase name="%s" time="%f">\n' "$f" "$time_delta" >> "$xml_out" if [ "$ret" -ne 0 ]; then echo "FAILED: $f" failed+=" $f" -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |