aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg/tar_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-28 12:27:34 +0900
committerOphestra <cat@gensokyo.uk>2026-09-29 19:17:58 +0900
commitd621c53cc1ad96adb36612e6143691dd0c79362b (patch)
tree96501187f96d2b91d689707fa649d1da0b97e76b /pkg/tar_test.go
parentcfbf2a91f639cac8c6966194c4bbbc0407d96ef8 (diff)
pkg: archive extract helper
This exposes the behaviour of curing an archiveArtifact without requiring a cache. This can be handy and avoids lots of duplicate code. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'pkg/tar_test.go')
-rw-r--r--pkg/tar_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/tar_test.go b/pkg/tar_test.go
index 58ec3aed..e8a42f73 100644
--- a/pkg/tar_test.go
+++ b/pkg/tar_test.go
@@ -249,10 +249,5 @@ func checkTarHTTP(
}), nil, nil, pkg.WNew, errors.Join(stub.UniqueError(0xcafe))},
})
- fault := base.Append("fault")
- if err := os.RemoveAll(fault.String()); err != nil {
- t.Fatal(err)
- } else if err = os.Mkdir(fault.String(), 0); err != nil {
- t.Fatal(err)
- }
+ dropFaults(t, base)
}