diff options
| author | Martin Hořeňovský | 2024-09-13 21:33:41 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-09-13 21:33:45 +0200 |
| commit | ce22c0fe8a6afed61aca682e47ddc9b084c60d4a (patch) | |
| tree | 6afa15e29f3062d172fe91206b75a94e681594ea /tests/TestScripts | |
| parent | 18df97df00848e91bfe1b63408bba19f8b8237ae (diff) | |
| download | catch3-ce22c0fe8a6afed61aca682e47ddc9b084c60d4a.tar.gz | |
Standardize exit codes for various failures
The main reason for this is to be able to distinguish between
different errors (or "errors") based on the return code. Before
this change, it was impossible to use the exit code to figure out
whether a test binary failed because all tests were skipped or
because exactly 4 assertions have failed.
This meant that using `catch_discover_tests` and telling it to
check for exit code == 4 to determine skipped tests could lead to
false negatives.
Diffstat (limited to 'tests/TestScripts')
| -rw-r--r-- | tests/TestScripts/testBazelReporter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TestScripts/testBazelReporter.py b/tests/TestScripts/testBazelReporter.py index d0893f81..573eafd2 100644 --- a/tests/TestScripts/testBazelReporter.py +++ b/tests/TestScripts/testBazelReporter.py @@ -52,7 +52,7 @@ try: ) stdout = ret.stdout except subprocess.SubprocessError as ex: - if ex.returncode == 1: + if ex.returncode == 42: # The test cases are allowed to fail. test_passing = False stdout = ex.stdout |