Skip to content

Commit cff1969

Browse files
authored
Merge pull request #84253 from edymtt/edymtt/fix-build-system-test-failures-6.2
[6.2] fix build system tests that assume CMake is in the search path
2 parents 94fd952 + 5324f20 commit cff1969

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
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

validation-test/BuildSystem/build_worktree.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# RUN: git -C %t/swift worktree add --detach %t/swift-worktree
1313

1414
# Invoke the build script from the worktree.
15-
# RUN: %t/swift-worktree/utils/build-script --dry-run | %FileCheck -DARCH=%target-arch %s
15+
# RUN: %t/swift-worktree/utils/build-script --dry-run --cmake %cmake | %FileCheck -DARCH=%target-arch %s
1616

1717
# We should generate a build system for the linked worktree, not the main
1818
# worktree.

0 commit comments

Comments
 (0)