e2e: ARC_E2E_NO_CLEANUP to prevent cleanup (#1470)
A small improvement to our E2E test suite which allows you to set `ARC_E2E_NO_CLEANUP=whatever` to let it prevent the kind cluster cleanup on successful test run, so that you can rerun it without waiting for the new kind cluster to come up.
This commit is contained in:
parent
84210e900b
commit
18bfb28c0b
|
|
@ -3,6 +3,7 @@ package e2e
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"time"
|
||||
|
|
@ -137,6 +138,10 @@ func TestE2E(t *testing.T) {
|
|||
t.Run("Verify workflow run result", func(t *testing.T) {
|
||||
env.verifyActionsWorkflowRun(t)
|
||||
})
|
||||
|
||||
if os.Getenv("ARC_E2E_NO_CLEANUP") != "" {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
func TestE2ERunnerDeploy(t *testing.T) {
|
||||
|
|
@ -179,7 +184,9 @@ func TestE2ERunnerDeploy(t *testing.T) {
|
|||
env.verifyActionsWorkflowRun(t)
|
||||
})
|
||||
|
||||
t.FailNow()
|
||||
if os.Getenv("ARC_E2E_NO_CLEANUP") != "" {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
type env struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue