File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 12
12
- go test -v ./pkg/...
13
13
- cd cmd/nerdctl
14
14
- sudo go run . run $NERDCTL_RUN_ARGS | grep running
15
+
16
+ docker_builder :
17
+ platform : windows
18
+ os_version : 2019
19
+ env :
20
+ CGO_ENABLED : 0
21
+ build_script : go test -v -run ^\QTestRunEnvFile\E$ ./cmd/...
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"io"
24
24
"os"
25
25
"os/exec"
26
+ "runtime"
26
27
"strings"
27
28
"testing"
28
29
"time"
@@ -399,6 +400,12 @@ func NewBase(t *testing.T) *Base {
399
400
}
400
401
401
402
func mirrorOf (s string ) string {
403
+ if runtime .GOOS == "windows" {
404
+ // use gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2-windows-amd64-ltsc2022 locally on windows 11
405
+ // https://github.com/microsoft/Windows-Containers/issues/179
406
+ return "gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2"
407
+ }
408
+
402
409
// plain mirror, NOT stargz-converted images
403
410
return fmt .Sprintf ("ghcr.io/stargz-containers/%s-org" , s )
404
411
}
You can’t perform that action at this time.
0 commit comments