skip start/stop on github actions

pull/7973/head
Sharif Elgamal 2020-05-20 16:08:44 -07:00
parent 83740e1779
commit 95584eac43
2 changed files with 10 additions and 5 deletions

View File

@ -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)

View File

@ -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"