Skip to content

Commit

Permalink
Fix failing tests when run in quiet mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Apr 19, 2024
1 parent db45f8e commit afd1b2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Alexander Miller
Benson Muite
2 changes: 1 addition & 1 deletion nihtest/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def run(self):
if self.failed:
if self.case.configuration.verbose != Configuration.When.NEVER:
print(self.case.name + " -- FAIL: " + ", ".join(self.failed))
return TestResult.FAILED
return TestResult.FAILED
else:
return TestResult.OK

Expand Down
7 changes: 0 additions & 7 deletions tests/quiet-fail.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ arguments -q true-fail.test
return 1
file true-fail.test true-fail.input
file nihtest.conf nihtest-conf
stdout
true-fail.test:1: test case failed
exit code differs:
-1
+0
true-fail -- FAIL: exit code
end-of-inline-data

0 comments on commit afd1b2c

Please sign in to comment.