Skip to content

Commit

Permalink
test: show a known naughty as a failure
Browse files Browse the repository at this point in the history
When a naughty appears in a different distribution mark it as failure
with a reason that it is known somewhere else.
  • Loading branch information
jelly committed Aug 24, 2023
1 parent 4b68be7 commit c5cc0e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/common/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Test:
return None, 0

if not opts.thorough:
cmd = ["test-failure-policy"]
cmd = ["test-failure-policy", "--all"]
if not opts.track_naughties:
cmd.append("--offline")
cmd.append(testvm.DEFAULT_IMAGE)
Expand All @@ -132,6 +132,11 @@ class Test:
self._print_test(skip_reason="# SKIP {0}".format(reason.decode("utf-8")))
return None, 0

if proc.returncode == 78:
self.returncode = proc.returncode
self._print_test(skip_reason="# NOTE {0}".format(reason.decode("utf-8")))
return None, 1

if proc.returncode == 1:
retry_reason = reason.decode("utf-8")

Expand Down

0 comments on commit c5cc0e1

Please sign in to comment.