Skip to content

Commit

Permalink
Ensure rm uses -f when cleaning
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <[email protected]>
  • Loading branch information
apostasie committed Oct 22, 2024
1 parent 07cb00b commit 62ad404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/nerdctl/ipfs/ipfs_simple_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestIPFSSimple(t *testing.T) {
helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey))
},
Cleanup: func(data test.Data, helpers test.Helpers) {
helpers.Anyhow("rm", data.Identifier("commit-container"))
helpers.Anyhow("rm", "-f", data.Identifier("commit-container"))
helpers.Anyhow("rmi", "-f", data.Identifier("commit-image"))
if data.Get(mainImageCIDKey) != "" {
helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey))
Expand Down Expand Up @@ -142,7 +142,7 @@ func TestIPFSSimple(t *testing.T) {
helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey))
},
Cleanup: func(data test.Data, helpers test.Helpers) {
helpers.Anyhow("rm", data.Identifier("commit-container"))
helpers.Anyhow("rm", "-f", data.Identifier("commit-container"))
helpers.Anyhow("rmi", "-f", data.Identifier("commit-image"))
if data.Get(mainImageCIDKey) != "" {
helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey))
Expand Down

0 comments on commit 62ad404

Please sign in to comment.