Skip to content

Commit 65aca11

Browse files
committed
fix elapsed in final matrix
1 parent e0b7d49 commit 65aca11

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ jobs:
100100
101101
duration=$(grep -oP 'duration="\K[0-9\.]+' "$path" | head -1)
102102
103+
if [ -z "$duration" ]; then
104+
local rd h m s
105+
rd=$(grep -oP 'runDuration="\K[0-9:.]+' "$path" | head -1)
106+
if [ -n "$rd" ]; then
107+
IFS=: read -r h m s <<<"${rd%%.*}"
108+
duration=$((10#$h*3600 + 10#$m*60 + 10#$s))
109+
fi
110+
fi
111+
103112
if [ -z "$duration" ]; then
104113
local start finish ds df
105114
start=$(grep -oP '<Times[^>]*start="\K[^"]+' "$path" | head -1)

0 commit comments

Comments
 (0)