diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 16:37:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 16:37:56 +0900 |
| commit | af3619d440d2d9c5bc0340653e4dd7cf98275e4a (patch) | |
| tree | 964c61da8805777c1380f62a1453124d41e7f52d /sandbox/container_test.go | |
| parent | 528674cb6e982978a72cdcd7337144cda12ab025 (diff) | |
sandbox: create symlinks
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 8de11e51..70b8560f 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, os.Args[0], "-test.v", + container := sandbox.New(ctx, "/tmp/sandbox.test", "-test.v", "-test.run=TestHelperCheckContainer", "--", "check", tc.host) container.Uid = 1000 container.Gid = 100 @@ -86,7 +86,8 @@ func TestContainer(t *testing.T) { container. Tmpfs("/tmp", 0, 0755). - Bind(os.Args[0], os.Args[0], 0) + Bind(os.Args[0], os.Args[0], 0). + Link(os.Args[0], "/tmp/sandbox.test") // in case test has cgo enabled var libPaths []string if entries, err := ldd.ExecFilter(ctx, |
