diff --git a/mantle/kola/tests/podman/podman.go b/mantle/kola/tests/podman/podman.go index c25a13f11c..bba7bb0b76 100644 --- a/mantle/kola/tests/podman/podman.go +++ b/mantle/kola/tests/podman/podman.go @@ -216,10 +216,9 @@ func podmanWorkflow(c cluster.TestCluster) { // Test: Delete container c.Run("delete", func(c cluster.TestCluster) { cmd := fmt.Sprintf("sudo podman rmi %s", image) - out := c.MustSSH(m, cmd) - imageID := string(out) + c.MustSSH(m, cmd) - cmd = fmt.Sprintf("sudo podman images | grep %s", imageID) + cmd = fmt.Sprintf("sudo podman image exists %s", image) out, err := c.SSH(m, cmd) if err == nil { c.Fatalf("Image should be deleted but found %s", string(out))