diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-12-09 10:54:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-12-09 10:54:11 +0000 |
commit | 3433a482c97913aaddccf83a224cb9cff819d340 (patch) | |
tree | b964307fa74e5ee419b7bf4b6e72eb53a83eb4f6 | |
parent | f5328d433c588e26a7763266208fe3460ef7ee99 (diff) | |
download | cmogstored-3433a482c97913aaddccf83a224cb9cff819d340.tar.gz |
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
-rw-r--r-- | test/mgmt-usage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |