mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-09-15 13:50:11 +03:00
CI: match and trim out internal timestamp for test prefix
Adjust the regexes to match the test line with timestamps, then remove them for the summary. The internal timestamp is still in the full logs. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #17045
This commit is contained in:
parent
245adb6a4f
commit
df5e02d253
6
.github/workflows/scripts/qemu-6-tests.sh
vendored
6
.github/workflows/scripts/qemu-6-tests.sh
vendored
@ -21,11 +21,13 @@ function prefix() {
|
|||||||
S=$((DIFF-(M*60)))
|
S=$((DIFF-(M*60)))
|
||||||
|
|
||||||
CTR=$(cat /tmp/ctr)
|
CTR=$(cat /tmp/ctr)
|
||||||
echo $LINE| grep -q "^Test[: ]" && CTR=$((CTR+1)) && echo $CTR > /tmp/ctr
|
echo $LINE| grep -q '^\[.*] Test[: ]' && CTR=$((CTR+1)) && echo $CTR > /tmp/ctr
|
||||||
|
|
||||||
BASE="$HOME/work/zfs/zfs"
|
BASE="$HOME/work/zfs/zfs"
|
||||||
COLOR="$BASE/scripts/zfs-tests-color.sh"
|
COLOR="$BASE/scripts/zfs-tests-color.sh"
|
||||||
CLINE=$(echo $LINE| grep "^Test[ :]" | sed -e 's|/usr/local|/usr|g' \
|
CLINE=$(echo $LINE| grep '^\[.*] Test[: ]' \
|
||||||
|
| sed -e 's|^\[.*] Test|Test|g' \
|
||||||
|
| sed -e 's|/usr/local|/usr|g' \
|
||||||
| sed -e 's| /usr/share/zfs/zfs-tests/tests/| |g' | $COLOR)
|
| sed -e 's| /usr/share/zfs/zfs-tests/tests/| |g' | $COLOR)
|
||||||
if [ -z "$CLINE" ]; then
|
if [ -z "$CLINE" ]; then
|
||||||
printf "vm${ID}: %s\n" "$LINE"
|
printf "vm${ID}: %s\n" "$LINE"
|
||||||
|
Loading…
Reference in New Issue
Block a user