diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 22:03:06 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 22:03:06 +0900 |
| commit | 228f3301f2e152855c2b63160945d6d01bb8cb30 (patch) | |
| tree | 86239ece0df88e6a5a273c25c06cc27bc86ca6bb /sandbox/container_test.go | |
| parent | 07181138e5abdf78dfcd6e9100362349ec4a81e8 (diff) | |
sandbox: create directories
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/container_test.go')
| -rw-r--r-- | sandbox/container_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sandbox/container_test.go b/sandbox/container_test.go index 70b8560f..41fd849a 100644 --- a/sandbox/container_test.go +++ b/sandbox/container_test.go @@ -67,7 +67,7 @@ func TestContainer(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - container := sandbox.New(ctx, "/tmp/sandbox.test", "-test.v", + container := sandbox.New(ctx, "/usr/bin/sandbox.test", "-test.v", "-test.run=TestHelperCheckContainer", "--", "check", tc.host) container.Uid = 1000 container.Gid = 100 @@ -87,7 +87,8 @@ func TestContainer(t *testing.T) { container. Tmpfs("/tmp", 0, 0755). Bind(os.Args[0], os.Args[0], 0). - Link(os.Args[0], "/tmp/sandbox.test") + Mkdir("/usr/bin"). + Link(os.Args[0], "/usr/bin/sandbox.test") // in case test has cgo enabled var libPaths []string if entries, err := ldd.ExecFilter(ctx, |
