aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-21 12:21:08 +0900
committerOphestra <cat@gensokyo.uk>2025-03-21 12:21:08 +0900
commita57a7a6a164a6a7a55a728c328dce4137885a91c (patch)
treefdf75dd58715268fca0a49c7c8662afa9ea80b15 /test
parent5098b12e4a0843a7f63a90ad6099cba66bc353a8 (diff)
test/sandbox: check type handling host_passthrough
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
-rw-r--r--test/sandbox/assert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go
index fff26047..3a7b31ed 100644
--- a/test/sandbox/assert.go
+++ b/test/sandbox/assert.go
@@ -40,7 +40,7 @@ func MustAssertMounts(name, hostMountsFile, wantFile string) {
for i := range want {
if want[i].Opts == "host_passthrough" {
for _, ent := range hostMounts {
- if want[i].FSName == ent.FSName {
+ if want[i].FSName == ent.FSName && want[i].Type == ent.Type {
// special case for tmpfs bind mounts
if want[i].FSName == "tmpfs" && want[i].Dir != ent.Dir {
continue