Skip to content

Commit 47a347a

Browse files
committed
make external boot test work for windows
1 parent 03ec84f commit 47a347a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#!/usr/bin/env bash
22

3-
set -euo pipefail
3+
set -xeuo pipefail
44

55
# This test expects ZIPAPP env var to point to the zipapp file.
66
if [[ -z "${ZIPAPP:-}" ]]; then
77
echo "ZIPAPP env var not set"
88
exit 1
99
fi
1010

11+
# On Windows, the executable file is an exe, and the .zip is a sibling
12+
# output.
13+
ZIPAPP="${ZIPAPP/.exe/.zip}"
14+
1115
# We're testing the invocation of `__main__.py`, so we have to
1216
# manually pass the zipapp to python.
1317
"$PYTHON" "$ZIPAPP"

0 commit comments

Comments
 (0)