Skip to content

Commit 6eb53a0

Browse files
committed
test: use inferSwiftBinary to find the reflection tool
We would previously search for it in the path rather than the build tree. This should identify where the tool is being used from, provide the just built tool, and still allow the user to change the tool path by an environment variable.
1 parent 5f3b1da commit 6eb53a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/lit.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,8 +1594,7 @@ config.substitutions.append(('%target-swift-ide-test\(mock-sdk:([^)]+)\)',
15941594
config.substitutions.append(('%target-swift-ide-test', "%s -swift-version %s" % (config.target_swift_ide_test, swift_version)))
15951595

15961596
if not hasattr(config, 'target_swift_reflection_test'):
1597-
config.target_swift_reflection_test = lit.util.which(
1598-
swift_reflection_test_name, config.environment['PATH'])
1597+
config.target_swift_reflection_test = inferSwiftBinary(swift_reflection_test_name)
15991598

16001599
config.substitutions.append(('%target-swift-reflection-test', config.target_swift_reflection_test))
16011600

0 commit comments

Comments
 (0)