Skip to content

Commit 0229d36

Browse files
committed
tests/podman: podman rmi output check
podman rmi only produces two lines of output without a -q option that might produce a "docker-ish" output displaying only the abbreviated image ID. To simplify rmi success checking, indirect testing using the expected ID output was replaced with a direct reference to the image name. Bash piping with grep was also removed in favor of a single command.
1 parent ee1e954 commit 0229d36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mantle/kola/tests/podman/podman.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func podmanWorkflow(c cluster.TestCluster) {
218218
cmd := fmt.Sprintf("sudo podman rmi %s", image)
219219
c.MustSSH(m, cmd)
220220

221-
cmd = fmt.Sprintf("sudo podman images --noheading --format={{.ID}} --filter reference=%s", image)
221+
cmd = fmt.Sprintf("sudo podman image exists %s", image)
222222
out, err := c.SSH(m, cmd)
223223
if err != nil {
224224
c.Fatalf("Image should be deleted but found %s", string(out))

0 commit comments

Comments
 (0)