Files
mongo/buildscripts/tests/resmoke_validation/test_suites_configurations.py
Daniel Moody 230828c095 SERVER-103025 delete scons (#34270)
GitOrigin-RevId: 5b41cb76ab5930046a68021716a874ceda26f7ca
2025-04-10 03:33:39 +00:00

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)}")