Skip to content

Commit

Permalink
Merge pull request #20696 from ashley-cui/ci
Browse files Browse the repository at this point in the history
[CI:DOCS] Machine test timeout env var
  • Loading branch information
openshift-merge-bot[bot] authored Nov 15, 2023
2 parents fcf4f33 + 3d88f61 commit ec2e533
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/machine/e2e/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -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
}

Expand Down

1 comment on commit ec2e533

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.