skip start/stop on github actions
parent
83740e1779
commit
95584eac43
|
|
@ -104,11 +104,6 @@ func ForwardedPort(ociBin string, ociID string, contPort int) (int, error) {
|
|||
return 0, errors.Wrapf(err, "get port %d for %q", contPort, ociID)
|
||||
}
|
||||
} else {
|
||||
rr, err = runCmd(exec.Command(ociBin, "inspect", ociID))
|
||||
fmt.Println(rr.Stderr.String())
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
rr, err = runCmd(exec.Command(ociBin, "inspect", "-f", fmt.Sprintf("'{{(index (index .NetworkSettings.Ports \"%d/tcp\") 0).HostPort}}'", contPort), ociID))
|
||||
if err != nil {
|
||||
return 0, errors.Wrapf(err, "get port %d for %q", contPort, ociID)
|
||||
|
|
|
|||
|
|
@ -140,6 +140,16 @@ func validateStopRunningNode(ctx context.Context, t *testing.T, profile string)
|
|||
}
|
||||
|
||||
func validateStartNodeAfterStop(ctx context.Context, t *testing.T, profile string) {
|
||||
if DockerDriver() {
|
||||
rr, err := Run(t, exec.Command("docker", "version", "-f", "{{.Server.Version}}")
|
||||
if err != nil {
|
||||
t.Fatalf("docker is broken: %v", err)
|
||||
}
|
||||
if strings.Contains(rr.Stdout.String(), "azure") {
|
||||
t.Skip("kic containers are not supported on docker's azure")
|
||||
}
|
||||
}
|
||||
|
||||
// Grab the stopped node
|
||||
name := "m03"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue