From cf0fd4897fe74206952ec27d2a4809f7959c8b6c Mon Sep 17 00:00:00 2001 From: "sec-check[bot]" Date: Tue, 15 Sep 2026 03:25:32 -0400 Subject: [PATCH] [scanner] fix: propagate lima-e2e browser-verification failures tests/e2e/test_kubestellar_browser_login.py exits non-zero when the console never becomes ready or the kiosk-gate assertion fails, but scripts/lima-e2e-kubestellar-test.sh wrapped the call in an '|| { echo ... }' fallback that swallowed any failure and always printed 'Lima VM end-to-end verification passed!'. Remove the fallback so the script (running under set -euo pipefail) propagates the real exit code. Fixes #159 Signed-off-by: sec-check[bot] --- scripts/lima-e2e-kubestellar-test.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/lima-e2e-kubestellar-test.sh b/scripts/lima-e2e-kubestellar-test.sh index fe760481..79ecff63 100755 --- a/scripts/lima-e2e-kubestellar-test.sh +++ b/scripts/lima-e2e-kubestellar-test.sh @@ -44,8 +44,6 @@ echo "==> Starting local kc-agent client connection..." ./files/bin/bluefin-kubestellar start --origin "http://localhost:8080,http://127.0.0.1:8080" echo "==> Running automated browser verification test..." -python3 tests/e2e/test_kubestellar_browser_login.py --console-url "http://127.0.0.1:8080" --agent-url "http://127.0.0.1:8585" --timeout 15 || { - echo "==> Browser login verification completed (console readiness check handled)." -} +python3 tests/e2e/test_kubestellar_browser_login.py --console-url "http://127.0.0.1:8080" --agent-url "http://127.0.0.1:8585" --timeout 15 echo "==> Lima VM end-to-end verification passed!"