summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-07-08 14:08:16 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-07-08 14:08:16 -0400
commit7dc6211ad5ea83685a35c6fff740278343aa8b9d (patch)
treefeeae360c11d30e9c12bf1fd01898d1537c49af5 /.github/workflows/build.yaml
parentca4288edaa226507e2a44182689a167bd4ea7948 (diff)
SL-18837: Force llprocess_test and llleap_test to use just 'python'.
On GitHub Windows runners, trying to make build.yaml set PYTHON=python in the environment doesn't work: integration tests still fail with "Access is denied" because they're still trying to execute the interpreter's full pathname. Instead, make llprocess_test and llleap_test detect the case of GitHub Windows and override the environment variable PYTHON with a baked-in string constant "python".
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r--.github/workflows/build.yaml6
1 files changed, 1 insertions, 5 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 47b1f421e5..c0bc5f30e1 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -177,11 +177,7 @@ jobs:
# as neither CMake's FindPython nor our custom Python.cmake module
# will resolve the correct interpreter location.
if [[ "$RUNNER_OS" == "Windows" ]]; then
- ##export PYTHON="$(native_path "$(which python)")"
- ## Weirdly, on GitHub's Windows runners, the integration test that
- ## runs just 'python' succeeds while the integration tests that
- ## run the full path to the .exe fail with "Access is denied."
- export PYTHON=python
+ export PYTHON="$(native_path "$(which python)")"
echo "Python location: $PYTHON"
export PYTHON_COMMAND="$PYTHON"
else