Skip to content

Commit

Permalink
contest: vm: add ' FAIL:' as a failure indicator
Browse files Browse the repository at this point in the history
Looks like we're missing the failures in rtnetlink.sh right now,
since they incorrectly set exit code and only print a "FAIL: ..."
message.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Oct 9, 2024
1 parent 0a35771 commit b273092
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contest/remote/lib/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ def new_vm(results_path, vm_id, thr=None, vm=None, config=None, cwd=None):
def guess_indicators(output):
return {
"fail": output.find("[FAIL]") != -1 or output.find("[fail]") != -1 or \
output.find(" FAIL:") != -1 or \
output.find("\nnot ok 1 selftests: ") != -1 or \
output.find("\n# not ok 1") != -1,
"skip": output.find("[SKIP]") != -1 or output.find("[skip]") != -1 or \
Expand Down

0 comments on commit b273092

Please sign in to comment.