[6.2] Do not require CMake to be in the path for build-script tests

(cherry picked from commit 4e854dea88)
This commit is contained in:
Eric Miotto
2025-07-31 08:52:55 -07:00
parent f72fd5aa8f
commit f17d8909f0

View File

@@ -53,9 +53,8 @@ class ToolchainTestCase(unittest.TestCase):
tc = host_toolchain()
# CMake
self.assertIsNotNone(tc.cmake)
self.assertTrue(
os.path.basename(tc.cmake).startswith('cmake'))
self.assertTrue(tc.cmake is None or
os.path.basename(tc.cmake).startswith('cmake'))
# Ninja
self.assertTrue(tc.ninja is None or