From df266527f17987af4bf275cc04990bfb89a82f4a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 12 Mar 2025 15:02:24 +0900 Subject: test/sandbox/mount: work around nondeterminism Signed-off-by: Ophestra --- test/sandbox/assert.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/sandbox/assert.go') 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 } -- cgit v1.3.1