minikube/test/integration/findmnt
Nir Soffer 6fbe84c7d2
test: Initial support for virtiofs mounts (#21272)
* test: Add findmnt package

When testing mounts we can use findmnt --json output to parse the output
cleanly. The package provides only ParseOutput() now, but it can be
extended later to run the findmnt command.

* test: Support virtiofs mounts

Use findmnt command to get the mounted filesystem details cleanly.

We use the actual mount fstype instead of driver name check so we can
switch drivers to virtiofs without changing the test.

For virtiofs mount we skip options validation since we don't support
setting virtiofs options yet, and the options are not the same as 9p
options.

For 9p mounts the uid= and gid= flags were fixed to match the real flags
(dfltuid=,dfltgid=). The issue was hidden by imprecise string matching.
2025-08-18 12:54:03 -07:00
..
testdata test: Initial support for virtiofs mounts (#21272) 2025-08-18 12:54:03 -07:00
findmnt.go test: Initial support for virtiofs mounts (#21272) 2025-08-18 12:54:03 -07:00
findmnt_test.go test: Initial support for virtiofs mounts (#21272) 2025-08-18 12:54:03 -07:00