diff --git a/pkg/machine/e2e/config_test.go b/pkg/machine/e2e/config_test.go index a77c22652e..60e9187a5a 100644 --- a/pkg/machine/e2e/config_test.go +++ b/pkg/machine/e2e/config_test.go @@ -6,6 +6,7 @@ import ( "os" "os/exec" "path/filepath" + "strconv" "strings" "time" @@ -100,6 +101,13 @@ func newMB() (*machineTestBuilder, error) { if os.Getenv("PODMAN_BINARY") != "" { mb.podmanBinary = os.Getenv("PODMAN_BINARY") } + if os.Getenv("MACHINE_TEST_TIMEOUT") != "" { + seconds, err := strconv.Atoi(os.Getenv("MACHINE_TEST_TIMEOUT")) + if err != nil { + return nil, err + } + mb.timeout = time.Duration(seconds) * time.Second + } return &mb, nil }