aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/exec_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-13 19:27:58 +0900
committerOphestra <cat@gensokyo.uk>2026-05-13 19:27:58 +0900
commit8c2dd3e9848799ac8408b8322e3eba237ce37903 (patch)
tree4161a57491a1b725420284cf14e7d97d69b6b2d6 /internal/pkg/exec_test.go
parent67038d5af400254a1a47490c155eae97da7d7e95 (diff)
internal/pkg: verify status kind
While it is still impossible to reliably determine the expected contents of these status files, this checks their nature for expected substitution behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/exec_test.go')
-rw-r--r--internal/pkg/exec_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/pkg/exec_test.go b/internal/pkg/exec_test.go
index e6751f0f..c88ff3f4 100644
--- a/internal/pkg/exec_test.go
+++ b/internal/pkg/exec_test.go
@@ -147,6 +147,7 @@ func TestExec(t *testing.T) {
t.Errorf("unexpected status:\n%s", string(faultStatus))
}
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -201,6 +202,7 @@ func TestExec(t *testing.T) {
), ignorePathname, wantNet, nil},
})
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -244,6 +246,7 @@ func TestExec(t *testing.T) {
), ignorePathname, wantOffline, nil},
})
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -290,6 +293,7 @@ func TestExec(t *testing.T) {
), ignorePathname, wantOffline, nil},
})
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -358,6 +362,7 @@ func TestExec(t *testing.T) {
), ignorePathname, wantOffline, nil},
})
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -410,6 +415,7 @@ func TestExec(t *testing.T) {
), ignorePathname, wantOffline, nil},
})
+ destroyStatus(t, base, 2)
testtoolDestroy(t, base, c)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},
@@ -473,6 +479,8 @@ func TestExec(t *testing.T) {
"check": {Mode: 0400, Data: []byte("binfmt")},
}, nil},
})
+
+ destroyStatus(t, base, 2)
}, expectsFS{
".": {Mode: fs.ModeDir | 0700},