24 lines
1.1 KiB
Python
24 lines
1.1 KiB
Python
import unittest
|
|
|
|
from buildscripts.resmokelib import config
|
|
from buildscripts.resmokelib.parser import set_run_options
|
|
from buildscripts.resmokelib.suitesconfig import get_named_suites, get_suite
|
|
|
|
|
|
class TestSuitesConfigurations(unittest.TestCase):
|
|
def test_validity_of_resmoke_suites_configurations(self):
|
|
set_run_options("--runAllFeatureFlagTests")
|
|
for suite_name in get_named_suites():
|
|
suite = get_suite(suite_name)
|
|
try:
|
|
suite.tests
|
|
except IOError as err:
|
|
# We ignore errors from missing files referenced in the test suite's "selector"
|
|
# section. Certain test suites (e.g. unittests.yml) have a dedicated text file to
|
|
# capture the list of tests they run; the text file may not be available if the
|
|
# associated bazel target hasn't been built yet.
|
|
if err.filename in config.EXTERNAL_SUITE_SELECTORS:
|
|
continue
|
|
except Exception as ex:
|
|
self.fail(f"While validating `{suite.get_name()}` suite got an error: {str(ex)}")
|