aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg/pkg_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-16 13:39:20 +0900
committerOphestra <cat@gensokyo.uk>2026-09-16 13:39:20 +0900
commit56572324956cfaa9039f7d7b7885cb3fec22f3fb (patch)
tree49bce72a226c7162695e46c9ec22d68f5a51969b /pkg/pkg_test.go
parentbbb6f349d3cf790fbd4f400201b816a2206b1769 (diff)
pkg: write tar status
This serves as a status indicator while fetching large tarballs, and preserves information otherwise stripped during unpacking. This is a revision of the tarArtifact to avoid inconsistent state from previously cured tarArtifact lacking their status files. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'pkg/pkg_test.go')
-rw-r--r--pkg/pkg_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/pkg_test.go b/pkg/pkg_test.go
index aa5016c1..775b68d9 100644
--- a/pkg/pkg_test.go
+++ b/pkg/pkg_test.go
@@ -587,7 +587,9 @@ func checkWithCache(t *testing.T, testCases []cacheTestCase) {
// destroy empty fault directory
if err := os.Remove(base.Append("fault").String()); err != nil {
- t.Fatal(err)
+ if !errors.Is(err, syscall.ENOTEMPTY) {
+ t.Fatal(err)
+ }
}
want := tc.want.hash()