diff options
author | Christoph Berg | 2016-09-22 13:15:09 +0000 |
---|---|---|
committer | Christoph Berg | 2016-09-22 13:15:09 +0000 |
commit | e963338ac493149a3b7bd222b4ea97b0876f5e92 (patch) | |
tree | 6ee5012da3fb2887083185c804a0d30917b6887f | |
parent | 3d6f175a9303753b7a36a59d4179d21b5e5d9a02 (diff) |
t/02_disk_space.t: Further relax device name check
In the wild (Debian sbuild) a CP output of "FS sid-pgdg-amd64-sbuild
mounted on /" was observed. Stop requiring the device name to start with
/ or -, and go with .* instead.
-rw-r--r-- | t/02_disk_space.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/02_disk_space.t b/t/02_disk_space.t index 24d887f7a..1b58ccdc8 100644 --- a/t/02_disk_space.t +++ b/t/02_disk_space.t @@ -39,7 +39,7 @@ $t = qq{$S identifies host}; like ($result, qr{host:$host}, $t); $t = qq{$S reports file system}; -like ($result, qr{FS [/-].*? mounted on /.*? is using }, $t); # in some build environments, the filesystem is reported as "-" +like ($result, qr{FS .* mounted on /.*? is using }, $t); # in some build environments, the filesystem is reported as "-" $t = qq{$S reports usage}; like ($result, qr{ is using \d*\.\d+ [A-Z]B of \d*\.\d+ [A-Z]B}, $t); @@ -54,6 +54,6 @@ $t = qq{$S flags insufficient space}; like ($cp->run('-w "999z or 1%"'), qr{$label WARNING:}, $t); $t = qq{$S reports MRTG output}; -like ($cp->run('--output=mrtg'), qr{\A\d+\n0\n\n[/-].*\n}, $t); +like ($cp->run('--output=mrtg'), qr{\A\d+\n0\n\n.*\n}, $t); exit; |