Verified Commit 8fa9a696 authored by Morgan Adamiec's avatar Morgan Adamiec
Browse files

pactest: fix test errors being treated as success

Rules return -1 if there was an error with the rule itself. Later this
return value is passed to tap as a bool. Because -1 is a truthy value it
gets treated as success.
parent 1340b533
Pipeline #11455 passed with stage
in 1 minute and 50 seconds
......@@ -322,7 +322,7 @@ def check(self):
self.result["success"] += 1
self.result["fail"] += 1
tap.ok(success, i)
tap.ok(success == 1, i)
def configfile(self):
return os.path.join(self.root, util.PACCONF)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment