aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-12 15:02:24 +0900
committerOphestra <cat@gensokyo.uk>2025-03-12 15:16:51 +0900
commitdf266527f17987af4bf275cc04990bfb89a82f4a (patch)
treec0e9e8957cc6f691ebe96a43b24281f5a6c42c2b /test/sandbox/assert.go
parentc8ed7aae6eb7fbf7481fb3f1672a5a75b55a4b97 (diff)
test/sandbox/mount: work around nondeterminism
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/assert.go')
-rw-r--r--test/sandbox/assert.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go
index 12323a0d..8e446268 100644
--- a/test/sandbox/assert.go
+++ b/test/sandbox/assert.go
@@ -41,6 +41,11 @@ func MustAssertMounts(name, hostMountsFile, wantFile string) {
if want[i].Opts == "host_passthrough" {
for _, ent := range hostMounts {
if want[i].FSName == ent.FSName {
+ // special case for tmpfs bind mounts
+ if want[i].FSName == "tmpfs" && want[i].Dir != ent.Dir {
+ continue
+ }
+
want[i].Opts = ent.Opts
goto out
}