Skip to content

Commit 04a348e

Browse files
committed
test: recognize Python E2E capability
1 parent 76fee4e commit 04a348e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/e2e/run_all.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ case "$OS" in
107107
Linux|Darwin) CAPS+=(symlink) ;;
108108
esac
109109

110+
# python3: a small number of E2E assertions inspect JSON structurally. Keep
111+
# this explicit so those tests skip honestly on minimal local runners instead
112+
# of either failing at runtime or declaring an unknown capability.
113+
command -v python3 &>/dev/null && CAPS+=(python3)
114+
110115
# nasm: the x86 assembler for .asm sources (PATH — including the xlings
111116
# subos shim — or the mcpp sandbox tool dir).
112117
if command -v nasm &>/dev/null \
@@ -143,7 +148,7 @@ echo "Detected capabilities: ${CAPS[*]:-<none>}"
143148
# CAPS+=() calls above by tests/e2e/README or by reading them -- keep it in
144149
# sync when adding a capability.
145150
KNOWN_CAPS=(elf fresh-sandbox gcc import-std-libcxx macos mingw-cross msvc
146-
musl nasm no-msvc pack patchelf scan-deps symlink unix-shell
151+
musl nasm no-msvc pack patchelf python3 scan-deps symlink unix-shell
147152
windows wine)
148153

149154
bad_tokens=0

0 commit comments

Comments
 (0)