From 1e11105b5c2c32baa7a1c89c0bff8ea51d16763d Mon Sep 17 00:00:00 2001 From: Flo Date: Tue, 31 Mar 2026 18:11:18 +0200 Subject: [PATCH] feat: add --skip-host flag to e2e.sh Skip host interactive tests when only running containers. Co-Authored-By: Claude --- test/e2e.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/e2e.sh b/test/e2e.sh index 6b5aecd..8e3d0a6 100755 --- a/test/e2e.sh +++ b/test/e2e.sh @@ -39,6 +39,7 @@ fi # Mutable state RUNTIME="" REBUILD=false +SKIP_HOST=false TARGET_DISTRO="" # Results tracking @@ -75,6 +76,10 @@ parse_args() { REBUILD=true shift ;; + --skip-host) + SKIP_HOST=true + shift + ;; --help|-h) usage exit 0 @@ -99,6 +104,7 @@ Run BATS tests inside containers across Linux distributions. Options: --runtime Container runtime (auto-detected if omitted) --rebuild Force image rebuild ignoring cache + --skip-host Skip host interactive tests (run containers only) --help, -h Show this help Distros: ubuntu, debian, fedora, alpine, arch @@ -305,7 +311,9 @@ main() { info "Using runtime: ${RUNTIME}" # Run interactive tests on the host first (covers macOS ssh-keygen) - if command -v tmux >/dev/null 2>&1; then + if [ "$SKIP_HOST" = true ]; then + info "Skipping host interactive tests (--skip-host)" + elif command -v tmux >/dev/null 2>&1; then run_distro_entry "host" run_host_interactive else info "tmux not found — skipping host interactive tests (install with: brew install tmux)"