diff --git a/utils/swift_build_support/tests/test_toolchain.py b/utils/swift_build_support/tests/test_toolchain.py index 34470d578aaa5..e2dc6f743225a 100644 --- a/utils/swift_build_support/tests/test_toolchain.py +++ b/utils/swift_build_support/tests/test_toolchain.py @@ -53,9 +53,8 @@ def test_misc_tools(self): 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 diff --git a/validation-test/BuildSystem/build_worktree.test b/validation-test/BuildSystem/build_worktree.test index f72ffc38f0f57..1f1f7c40cbef0 100644 --- a/validation-test/BuildSystem/build_worktree.test +++ b/validation-test/BuildSystem/build_worktree.test @@ -12,7 +12,7 @@ # RUN: git -C %t/swift worktree add --detach %t/swift-worktree # Invoke the build script from the worktree. -# RUN: %t/swift-worktree/utils/build-script --dry-run | %FileCheck -DARCH=%target-arch %s +# RUN: %t/swift-worktree/utils/build-script --dry-run --cmake %cmake | %FileCheck -DARCH=%target-arch %s # We should generate a build system for the linked worktree, not the main # worktree.