From e009c0cf1c27c81757b8425f7cf39096b82aefd9 Mon Sep 17 00:00:00 2001 From: Edoardo Vacchi Date: Thu, 26 Jan 2023 13:58:29 +0100 Subject: [PATCH] locate bash using which https://github.com/actions/runner-images/pull/1081#issuecomment-661524144 --- .github/workflows/python-bash-windows.yaml | 4 ---- python-bash-windows/script.py | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-bash-windows.yaml b/.github/workflows/python-bash-windows.yaml index db0e5e7..35d6a3d 100644 --- a/.github/workflows/python-bash-windows.yaml +++ b/.github/workflows/python-bash-windows.yaml @@ -14,10 +14,6 @@ jobs: - name: Checkout the playground uses: actions/checkout@v3 - - name: delete bash.exe stub on windows - if: runner.os == 'Windows' - run: del C:\Windows\System32\bash.exe - - name: Run all wasi-testsuite working-directory: python-bash-windows run: | diff --git a/python-bash-windows/script.py b/python-bash-windows/script.py index ab4492b..c52d013 100644 --- a/python-bash-windows/script.py +++ b/python-bash-windows/script.py @@ -1,7 +1,8 @@ import subprocess +from shutil import which args = [ - 'bash', + which('bash'), 'script.sh', ]