From aee73c570edf806d807cc568e2b9c4c8928c27fc Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Thu, 19 Dec 2024 11:53:08 -0800 Subject: [PATCH] [test] Don't repeatedly warn about a compiler not being found The IntelliSense `test-only-edg` pipeline doesn't have `clang-cl` available since it's not used; there's no reason to spam the logs with warnings. --- tests/utils/stl/test/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/utils/stl/test/tests.py b/tests/utils/stl/test/tests.py index 4e1b99eba5c..658db996127 100644 --- a/tests/utils/stl/test/tests.py +++ b/tests/utils/stl/test/tests.py @@ -30,6 +30,8 @@ class TestType(Flag): class STLTest(Test): + compilerNotFound = set() + def __init__(self, suite, pathInSuite, litConfig, testConfig, envlstEntry, envNum): self.envNum = envNum self.envlstEntry = envlstEntry @@ -217,7 +219,9 @@ def _handleEnvlst(self, litConfig): _compilerPathCache[envCompiler] = cxx if not cxx: - litConfig.warning('Could not find: %r' % envCompiler) + if envCompiler not in self.compilerNotFound: + self.compilerNotFound.add(envCompiler) + litConfig.warning('Could not find: %r' % envCompiler) return Result(SKIPPED, 'This test was skipped because the compiler, "' + envCompiler + '", could not be found')