diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-11 02:52:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-11 04:56:42 +0900 |
| commit | e99d7affb0c128fa82722f9b3d79c99b5e5918cd (patch) | |
| tree | 387e08d6c4363d8b9e0462f069c140fbdb15c917 /hst/template_test.go | |
| parent | 41ac2be9658b49c68cb793f3a6f0c5932d82e1c2 (diff) | |
container: use absolute for pathname
This is simultaneously more efficient and less error-prone. This change caused minor API changes in multiple other packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/template_test.go')
| -rw-r--r-- | hst/template_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hst/template_test.go b/hst/template_test.go index cf8ab81c..da119d4f 100644 --- a/hst/template_test.go +++ b/hst/template_test.go @@ -99,7 +99,7 @@ func TestTemplate(t *testing.T) { "filesystem": [ { "dst": "/tmp/", - "src": "tmpfs", + "src": "/proc/nonexistent", "write": true }, { @@ -126,10 +126,10 @@ func TestTemplate(t *testing.T) { } ], "symlink": [ - [ - "/run/user/65534", - "/run/user/150" - ] + { + "target": "/run/user/65534", + "linkname": "/run/user/150" + } ], "auto_root": "/var/lib/hakurei/base/org.debian", "root_flags": 2, |
