Skip to content

Commit 5754b71

Browse files
committed
test: execute rth with the interpreter
Not all targets support the shebang for the interpreter. In particular, Windows does not support this. Add an explicit interpreter that is used to invoke the tool.
1 parent c9bdd3a commit 5754b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ config.substitutions.append(('%gyb', '%r %s' % (sys.executable, config.gyb)))
14881488
config.substitutions.append(('%round-trip-syntax-test',
14891489
'%r %s' % (sys.executable,
14901490
config.round_trip_syntax_test)))
1491-
config.substitutions.append(('%rth', config.rth))
1491+
config.substitutions.append(('%rth', '%r %s' % (sys.executable, config.rth)))
14921492
config.substitutions.append(('%scale-test',
14931493
'{} --swiftc-binary={} --tmpdir=%t'.format(
14941494
config.scale_test, config.swiftc)))

0 commit comments

Comments
 (0)