From 26ea0bc106ae11bf715ebe7e3801da375e3352e0 Mon Sep 17 00:00:00 2001 From: Flo Date: Tue, 31 Mar 2026 11:39:43 +0200 Subject: [PATCH] fix: run interactive tmux tests in e2e pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e2e.sh now runs both BATS and interactive tests per distro: build -> BATS -> interactive. Failure stage shown in summary. Closes: #22 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- test/e2e.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/test/e2e.sh b/test/e2e.sh index 4c71e31..3327d67 100755 --- a/test/e2e.sh +++ b/test/e2e.sh @@ -178,7 +178,7 @@ run_tests() { local distro="$1" local image_name="${IMAGE_PREFIX}:${distro}" - info "Running tests on ${distro}..." + info "Running BATS tests on ${distro}..." if ! "$RUNTIME" run \ --rm \ --network=none \ @@ -188,6 +188,20 @@ run_tests() { fi } +run_interactive_tests() { + local distro="$1" + local image_name="${IMAGE_PREFIX}:${distro}" + + info "Running interactive tests on ${distro}..." + if ! "$RUNTIME" run \ + --rm \ + --network=none \ + "$image_name" \ + bash test/interactive/run-all.sh 2>&1; then + return 1 + fi +} + run_distro() { local distro="$1" local start_time @@ -200,7 +214,9 @@ run_distro() { if ! build_image "$distro"; then status="FAIL (build)" elif ! run_tests "$distro"; then - status="FAIL (tests)" + status="FAIL (bats)" + elif ! run_interactive_tests "$distro"; then + status="FAIL (interactive)" fi local end_time