[test] Isolate swift_build_support.swift testing (#80192)

The test was using the default value for SWIFT_BUILD_ROOT, which tried
to write into `.build_script_log`. Use an environment variable so the
tests use their own directory and write files that do not append to the
actual `.build_script_log`.

Follow up to #80102
This commit is contained in:
Daniel Rodríguez Troitiño
2025-03-21 03:36:44 -07:00
committed by GitHub
parent 77ad256926
commit b0a199e1b8

View File

@@ -7,4 +7,5 @@
// UNSUPPORTED: OS=tvos
// UNSUPPORTED: OS=watchos
// RUN: %{python} %utils/swift_build_support/run_tests.py
// RUN: %empty-directory(%t)
// RUN: env SWIFT_BUILD_ROOT=%t %{python} %utils/swift_build_support/run_tests.py