Skip to content

Commit 4e854de

Browse files
committed
Do not require CMake to be in the path for build-script tests
1 parent 0869919 commit 4e854de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/swift_build_support/tests/test_toolchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ def test_misc_tools(self):
5353
tc = host_toolchain()
5454

5555
# CMake
56-
self.assertIsNotNone(tc.cmake)
57-
self.assertTrue(
58-
os.path.basename(tc.cmake).startswith('cmake'))
56+
self.assertTrue(tc.cmake is None or
57+
os.path.basename(tc.cmake).startswith('cmake'))
5958

6059
# Ninja
6160
self.assertTrue(tc.ninja is None or

0 commit comments

Comments
 (0)