Skip to content

Commit 4b03188

Browse files
committed
test: execute round-trip-test with the interpreter
This is a python script that is run by tests. However, they do not explicitly use the interpreter. This may result in the wrong python interpreter being used on some systems. On Windows this will fail to execute since the shebang is not honoured.
1 parent 8e38b67 commit 4b03188

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lit.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,9 @@ config.substitutions.append(
12821282
config.substitutions.append(('%utils', config.swift_utils))
12831283
config.substitutions.append(('%line-directive', '%r %s' % (sys.executable, config.line_directive)))
12841284
config.substitutions.append(('%gyb', '%r %s' % (sys.executable, config.gyb)))
1285-
config.substitutions.append(('%round-trip-syntax-test', config.round_trip_syntax_test))
1285+
config.substitutions.append(('%round-trip-syntax-test',
1286+
'%r %s' % (sys.executable,
1287+
config.round_trip_syntax_test)))
12861288
config.substitutions.append(('%rth', config.rth))
12871289
config.substitutions.append(('%scale-test',
12881290
'{} --swiftc-binary={} --tmpdir=%t'.format(

0 commit comments

Comments
 (0)