Skip to content

Commit

Permalink
test: specify nerdctl v1 on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Jan 3, 2025
1 parent ad82bee commit 59f7cb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"

"github.com/runfinch/common-tests/option"
)
Expand Down Expand Up @@ -63,7 +64,12 @@ func CreateOption() (*option.Option, error) {
args = append(args, "--debug")
}

o, err := option.New(args)
mods := []option.Modifier{}
if runtime.GOOS == "linux" {
mods = append(mods, option.WithNerdctlVersion("1.7.7"))
}

o, err := option.New(args, mods...)
if err != nil {
return nil, fmt.Errorf("failed to initialize a testing option: %w", err)
}
Expand Down

0 comments on commit 59f7cb6

Please sign in to comment.