aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
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
}