diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-13 17:58:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-13 17:58:18 +0900 |
| commit | f2f17261905e6ea6c686bb490188f86710fd9720 (patch) | |
| tree | 427aaa81253e469f3fceb0289a35aa97b0e86776 /internal/pkg/pkg_test.go | |
| parent | f63203cb0a1ed9c1aa74d3608836e3899d8a12d5 (diff) | |
internal/pkg: record cure faults
These are useful for troubleshooting. This change records them in a separate directory.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
