Skip to content

Commit beaa39d

Browse files
authored
Merge pull request containerd#3590 from apostasie/series-3
Ensure rm uses -f when cleaning
2 parents ebdaf13 + 62ad404 commit beaa39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/nerdctl/ipfs/ipfs_simple_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func TestIPFSSimple(t *testing.T) {
104104
helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey))
105105
},
106106
Cleanup: func(data test.Data, helpers test.Helpers) {
107-
helpers.Anyhow("rm", data.Identifier("commit-container"))
107+
helpers.Anyhow("rm", "-f", data.Identifier("commit-container"))
108108
helpers.Anyhow("rmi", "-f", data.Identifier("commit-image"))
109109
if data.Get(mainImageCIDKey) != "" {
110110
helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey))
@@ -142,7 +142,7 @@ func TestIPFSSimple(t *testing.T) {
142142
helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey))
143143
},
144144
Cleanup: func(data test.Data, helpers test.Helpers) {
145-
helpers.Anyhow("rm", data.Identifier("commit-container"))
145+
helpers.Anyhow("rm", "-f", data.Identifier("commit-container"))
146146
helpers.Anyhow("rmi", "-f", data.Identifier("commit-image"))
147147
if data.Get(mainImageCIDKey) != "" {
148148
helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey))

0 commit comments

Comments
 (0)