fix(cli-e2e): disable keychain only in e2e runs

This commit is contained in:
Tienson Qin
2026-04-22 15:31:13 +08:00
parent 80a99e0ad0
commit fd6bdff4cc
5 changed files with 132 additions and 63 deletions

View File

@@ -14,6 +14,7 @@
text)))
(def template-pattern #"\{\{([^}]+)\}\}")
(def ^:private e2e-env {"CLI_E2E_TEST" "1"})
(defn- render-string
[template context]
@@ -165,6 +166,7 @@
[command context {:keys [run-command stdin allow-failure phase step-index step-total case-id]}]
(run-command {:cmd (render-string command context)
:dir (paths/repo-root)
:env e2e-env
:stdin (some-> stdin (render-string context))
:phase phase
:step-index step-index