Skip to content

Commit 35f6e61

Browse files
committed
fix tests on docker builds
on docker the / is a overlay fs which matches the default filter.
1 parent 9219cb9 commit 35f6e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/01_cmd_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ func TestLinuxChecks(t *testing.T) {
1919
// default filter is extended with an AND
2020
runCmd(t, &cmd{
2121
Cmd: bin,
22-
Args: []string{"run", "check_drivesize", "filter+='drive = /'", "filter='drive = c:'", "warn=used>100%", "crit=used>100%", "-vvv"},
23-
Like: []string{"OK - All 1 drive", `\(fstype not in.* and drive = /\) or drive = c:`},
22+
Args: []string{"run", "check_drivesize", "filter+='drive = /'", "filter='drive = / and fstype = overlay'", "warn=used>100%", "crit=used>100%", "-vvv"},
23+
Like: []string{"OK - All 1 drive", `\(fstype not in.* and drive = /\) or drive = / and fstype = overlay`},
2424
Exit: 0,
2525
})
2626
}

0 commit comments

Comments
 (0)