diff options
author | Eric Wong <e@80x24.org> | 2014-02-08 20:49:12 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-02-08 20:49:12 -0500 |
commit | 6b974dc9cb48e6af8e4ea9410141168208e7ca06 (patch) | |
tree | 79e9119c0a6aeb15689486629d47db88f79b9755 /test/mgmt.rb | |
parent | fd6722ac69f72bc4783675f055ab567a9902c713 (diff) | |
download | cmogstored-6b974dc9cb48e6af8e4ea9410141168208e7ca06.tar.gz |
Debian GNU/kFreeBSD still does not have iostat :<
Diffstat (limited to 'test/mgmt.rb')
-rw-r--r-- | test/mgmt.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mgmt.rb b/test/mgmt.rb index c3c6a66..67ffca1 100644 --- a/test/mgmt.rb +++ b/test/mgmt.rb @@ -332,7 +332,8 @@ class TestMgmt < Test::Unit::TestCase assert_nil lines.grep(/\b#{max + 1}\b/)[0] assert File.exist?("#@tmpdir/dev#{max}/usage") assert ! File.exist?("#@tmpdir/dev#{max + 1}/usage") - end + end if `which iostat 2>/dev/null`.chomp.size != 0 && + RUBY_PLATFORM !~ /kfreebsd-gnu/ def test_iostat_watch Dir.mkdir("#@tmpdir/dev666") |