prplos/.gitlab/scripts/cdrouter-pretty-failures.awk
Petr Štetiar cbead58ac4
ci: copy over files from prplOS v1.5 release
In order to have QA in place.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2025-07-31 10:31:14 +00:00

19 lines
281 B
Awk
Executable File

#!/usr/bin/awk -f
/Test cdrouter-[0-9]+:/ {
name=$0
}
/SECTION\(cdrouter-[0-9]+\)/ {
section=substr($0,index($0,$3))
}
/FAIL: Test .* \([0-9]+\) failed$/ {
next;
}
/FAIL:/ {
failure=substr($0,index($0,$3))
print name"\n\x1b[33m "section"\n\x1b[1;31m "failure"\n\x1b[0m"
}