From 3433a482c97913aaddccf83a224cb9cff819d340 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Dec 2013 10:54:11 +0000 Subject: test/mgmt-usage: relax regexp for ZFS ZFS device mount points do not start with a leading '/'. We already account for this in our internal mountpoint handling, but did not account for this in the test case. Reported-by: Mikolaj Golub --- test/mgmt-usage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mgmt-usage.rb b/test/mgmt-usage.rb index 1224b66..1969077 100644 --- a/test/mgmt-usage.rb +++ b/test/mgmt-usage.rb @@ -47,7 +47,7 @@ class TestCmogstoredUsage < Test::Unit::TestCase def check_usage_file(usage, devdir) lines = File.readlines(usage) assert_match(/^available: \d+$/, lines[0]) - assert_match(%r{^device: /\S+$}, lines[1]) + assert_match(%r{^device: /?\S+$}, lines[1]) assert_match(/^disk: #{Regexp.escape(devdir)}$/, lines[2]) assert_match(/^time: \d+\n$/, lines[3]) assert_match(/^total: \d+\n$/, lines[4]) -- cgit v1.2.3-24-ge0c7