CI: Add timing to junit

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Anthony PERARD committed 2025-06-06 12:07:26 +02:00
1 parent 1cdf180308
commit 321b74f29d
1 file changed
+4 -1
+4 -1
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.