diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:06:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:57:58 +0900 |
| commit | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch) | |
| tree | dfe9c40ceb8c1be8d2728a2db9017bffef174d3d /container/autoetc_test.go | |
| parent | d23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (diff) | |
container/check: move absolute pathname
This allows use of absolute pathname values without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoetc_test.go')
| -rw-r--r-- | container/autoetc_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/container/autoetc_test.go b/container/autoetc_test.go index 58ef99b1..30f46e50 100644 --- a/container/autoetc_test.go +++ b/container/autoetc_test.go @@ -5,6 +5,7 @@ import ( "os" "testing" + "hakurei.app/container/check" "hakurei.app/container/stub" ) @@ -256,11 +257,11 @@ func TestAutoEtcOp(t *testing.T) { }) checkOpsBuilder(t, []opsBuilderTestCase{ - {"pd", new(Ops).Etc(MustAbs("/etc/"), "048090b6ed8f9ebb10e275ff5d8c0659"), Ops{ - &MkdirOp{Path: MustAbs("/etc/"), Perm: 0755}, + {"pd", new(Ops).Etc(check.MustAbs("/etc/"), "048090b6ed8f9ebb10e275ff5d8c0659"), Ops{ + &MkdirOp{Path: check.MustAbs("/etc/"), Perm: 0755}, &BindMountOp{ - Source: MustAbs("/etc/"), - Target: MustAbs("/etc/.host/048090b6ed8f9ebb10e275ff5d8c0659"), + Source: check.MustAbs("/etc/"), + Target: check.MustAbs("/etc/.host/048090b6ed8f9ebb10e275ff5d8c0659"), }, &AutoEtcOp{Prefix: "048090b6ed8f9ebb10e275ff5d8c0659"}, }}, |
