feat: proper windows support
This commit is contained in:
17
tests/ci_test/verify_native_wrapper_shape.sh
Executable file
17
tests/ci_test/verify_native_wrapper_shape.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
python3 - "$@" <<'PY'
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
windows = sys.platform.startswith("win")
|
||||
|
||||
for launcher in sys.argv[1:]:
|
||||
suffix = pathlib.Path(launcher).suffix.lower()
|
||||
if windows:
|
||||
if suffix != ".cmd":
|
||||
raise SystemExit(f"expected .cmd launcher on Windows: {launcher}")
|
||||
elif suffix == ".sh":
|
||||
raise SystemExit(f"unexpected .sh launcher executable: {launcher}")
|
||||
PY
|
||||
Reference in New Issue
Block a user