Skip to content

Commit b1deb97

Browse files
committed
test: explicitly indicate interpreter for utils
This fixes the last couple of instances of the interpreter not being passed to the python the scripts which makes them fail on OSes where shebangs are not honoured (i.e. Windows)
1 parent ff5c406 commit b1deb97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Runtime/backtrace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3-
// RUN: not --crash %t/a.out 2>&1 | %utils/backtrace-check
3+
// RUN: not --crash %t/a.out 2>&1 | %{python} %utils/backtrace-check
44

55
// This is not supported on watchos, ios, or tvos
66
// UNSUPPORTED: OS=watchos

test/Runtime/linux-fatal-backtrace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3-
// RUN: not --crash %t/a.out 2>&1 | PYTHONPATH=%lldb-python-path %utils/symbolicate-linux-fatal %t/a.out - | %utils/backtrace-check -u
3+
// RUN: not --crash %t/a.out 2>&1 | PYTHONPATH=%lldb-python-path %{python} %utils/symbolicate-linux-fatal %t/a.out - | %{python} %utils/backtrace-check -u
44
// REQUIRES: executable_test
55
// REQUIRES: OS=linux-gnu
66
// REQUIRES: lldb

test/expr/primary/selector/fixits.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// RUN: %empty-directory(%t.remapping)
2121
// RUN: cp %s %t.sources/fixits.swift
2222
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t.overlays) -typecheck %t.sources/fixits.swift -fixit-all -emit-fixits-path %t.remapping/fixits.remap
23-
// RUN: %utils/apply-fixit-edits.py %t.remapping
23+
// RUN: %{python} %utils/apply-fixit-edits.py %t.remapping
2424
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t.overlays) -typecheck %t.sources/fixits.swift 2> %t.result
2525

2626
// RUN: %FileCheck %s < %t.result

0 commit comments

Comments
 (0)