Skip to content

Commit 5c1a6e1

Browse files
committed
contest: vm: add a pattern for ktap summary line pass
YNL tests print raw KTAP, unwrapped in the ksft runner. Detect its summary line when it passes. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f7bbeca commit 5c1a6e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

contest/remote/lib/vm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,5 +481,6 @@ def guess_indicators(output):
481481
"pass": output.find("[OKAY]") != -1 or output.find("[PASS]") != -1 or \
482482
output.find("[ OK ]") != -1 or output.find("[OK]") != -1 or \
483483
output.find("[ ok ]") != -1 or output.find("[pass]") != -1 or \
484-
output.find("PASSED all ") != -1 or output.find("\nok 1 selftests: ") != -1,
484+
output.find("PASSED all ") != -1 or output.find("\nok 1 selftests: ") != -1 or \
485+
bool(re.search(r"# Totals: pass:[1-9]\d* fail:0 (xfail:0 )?(xpass:0 )?skip:0 error:0", output)),
485486
}

0 commit comments

Comments
 (0)