test/sandbox: check type handling host_passthrough

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-21 12:21:08 +09:00
parent 5098b12e4a
commit a57a7a6a16

View File

@@ -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