From f2f17261905e6ea6c686bb490188f86710fd9720 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 13 May 2026 17:58:18 +0900 Subject: internal/pkg: record cure faults These are useful for troubleshooting. This change records them in a separate directory. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 96eda8ad..9588fe77 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -492,6 +492,12 @@ func checkWithCache(t *testing.T, testCases []cacheTestCase) { if err := os.RemoveAll(base.Append("status").String()); err != nil { t.Fatal(err) } + + // destroy empty fault directory + if err := os.Remove(base.Append("fault").String()); err != nil { + t.Fatal(err) + } + want := tc.want.hash() var checksum pkg.Checksum -- cgit v1.3.1