summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Berg2015-08-29 21:03:43 +0000
committerChristoph Berg2015-08-29 21:03:43 +0000
commitf27832a1912a5f1e2b47a9e1772f6cceffd6cb3f (patch)
tree558792c8ccf54a182a09f4e5b5fe229928f815ea
parent2185a428ffa7a16a02ad10141e0fdf814bbdbcee (diff)
t/02_disk_space.t: relax filesystem check
In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790231, Daniel Schepler reports pbuilder (a throwaway-minimal-chroot build wrapper for Debian packages) to setup the filesystem name to be shown as "-". Allow this in the testsuite.
-rw-r--r--t/02_disk_space.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/02_disk_space.t b/t/02_disk_space.t
index 74e3a6eeb..24d887f7a 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);
+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;