diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-09-28 12:27:34 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-09-29 19:17:58 +0900 |
| commit | d621c53cc1ad96adb36612e6143691dd0c79362b (patch) | |
| tree | 96501187f96d2b91d689707fa649d1da0b97e76b /pkg/tar_test.go | |
| parent | cfbf2a91f639cac8c6966194c4bbbc0407d96ef8 (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.go | 7 |
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) } |
