diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-06-18 09:39:10 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-06-23 02:59:09 -0400 |
commit | e14b893a7fcf4760327484d39a5023510a394f7e (patch) | |
tree | 07b430790dda4e5a2406027c86c7cc5450f3ff65 /testsuite/driver/testglobals.py | |
parent | 7f6454fb8cd92b2b2ad4e88fa6d81e34d43edb9a (diff) | |
download | haskell-e14b893a7fcf4760327484d39a5023510a394f7e.tar.gz |
testsuite: Don't try to run tests with missing libraries
As noticed by sgraf, we were still running reqlib tests, even if the
library was not available. The reasons for this were not clear to me as
they would never work and it was causing some issues with empty stderr
files being generated if you used --test-accept.
Now if the required library is not there, the test is just skipped, and
a counter increased to mark the fact.
Perhaps in the future it would be nicer to explicitly record why certain
tests are skipped. Missing libraries causing a skip is a special case
at the moment.
Fixes #20005
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r-- | testsuite/driver/testglobals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py index dd063f0c73..f52aec281c 100644 --- a/testsuite/driver/testglobals.py +++ b/testsuite/driver/testglobals.py @@ -255,10 +255,10 @@ class TestRun: self.total_test_cases = 0 self.n_tests_skipped = 0 + self.n_missing_libs = 0 self.n_expected_passes = 0 self.n_expected_failures = 0 - self.missing_libs = [] # type: List[TestResult] self.framework_failures = [] # type: List[TestResult] self.framework_warnings = [] # type: List[TestResult] |