From 5f6753f37d9d332a9f79f608701caac8c882af3e Mon Sep 17 00:00:00 2001 From: Ami Fischman Date: Mon, 8 May 2023 08:28:28 -0700 Subject: [PATCH] XCTest: update shebang lines to name python3 instead of python generically. Motivated by [failure](https://ci.swift.org/job/swift-corelibs-foundation-PR-macOS/221/execution/node/43/log/) from https://github.com/apple/swift-corelibs-foundation/pull/4740's test runs, which ended with: ``` + /Users/ec2-user/jenkins/workspace/swift-corelibs-foundation-PR-macOS/branch-main/swift-corelibs-xctest/build_script.py --swiftc=/Users/ec2-user/jenkins/workspace/swift-corelibs-foundation-PR-macOS/branch-main/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swiftc --build-dir=/Users/ec2-user/jenkins/workspace/swift-corelibs-foundation-PR-macOS/branch-main/build/Ninja-ReleaseAssert/xctest-macosx-x86_64 --foundation-build-dir=/Users/ec2-user/jenkins/workspace/swift-corelibs-foundation-PR-macOS/branch-main/build/Ninja-ReleaseAssert/foundation-macosx-x86_64 --swift-build-dir=/Users/ec2-user/jenkins/workspace/swift-corelibs-foundation-PR-macOS/branch-main/build/Ninja-ReleaseAssert/swift-macosx-x86_64 --release env: python: No such file or directory ``` --- Tests/Functional/xctest_checker/xctest_checker.py | 2 +- Tests/Functional/xctest_checker/xctest_checker/main.py | 2 +- build_script.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Functional/xctest_checker/xctest_checker.py b/Tests/Functional/xctest_checker/xctest_checker.py index 363d3e139..a185cf7fb 100755 --- a/Tests/Functional/xctest_checker/xctest_checker.py +++ b/Tests/Functional/xctest_checker/xctest_checker.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # xctest_checker.py - Verify XCTest output -*- python -*- # # This source file is part of the Swift.org open source project diff --git a/Tests/Functional/xctest_checker/xctest_checker/main.py b/Tests/Functional/xctest_checker/xctest_checker/main.py index 5177d59b6..5785ead0b 100644 --- a/Tests/Functional/xctest_checker/xctest_checker/main.py +++ b/Tests/Functional/xctest_checker/xctest_checker/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # xctest_checker/main.py - Entry point for xctest_checker -*- python -*- # # This source file is part of the Swift.org open source project diff --git a/build_script.py b/build_script.py index bd90ebf89..92bc9e0d7 100755 --- a/build_script.py +++ b/build_script.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # build_script.py - Build, install, and test XCTest -*- python -*- # # This source file is part of the Swift.org open source project