Skip to content

Commit 2c5b752

Browse files
authored
Merge pull request #1947 from ahoppen/ahoppen/no-performance-test-on-apple-silicon
Only enable performance testing on Intel machines that run macOS
2 parents 358eca6 + b578407 commit 2c5b752

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build-script.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,10 @@ def run_xctests(
465465
env["SWIFTCI_USE_LOCAL_DEPS"] = "1"
466466
env["SWIFT_SYNTAX_PARSER_LIB_SEARCH_PATH"] = \
467467
os.path.join(toolchain, "lib", "swift", "macosx")
468-
env["BASELINE_FILE"] = os.path.join(TESTS_DIR, "PerformanceTest", "ci-baselines.json")
468+
if platform.system() == "Darwin" and platform.machine() == "i386":
469+
# Only perform performance testing on Intel macOS machines because that’s what
470+
# the baselines are written for.
471+
env["BASELINE_FILE"] = os.path.join(TESTS_DIR, "PerformanceTest", "ci-baselines.json")
469472

470473
check_call(swiftpm_call, env=env, verbose=verbose)
471474

0 commit comments

Comments
 (0)