about summary refs log tree commit homepage
path: root/test/mgmt_auto_adjust.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-02-08 20:49:12 -0500
committerEric Wong <e@80x24.org>2014-02-08 20:49:12 -0500
commit6b974dc9cb48e6af8e4ea9410141168208e7ca06 (patch)
tree79e9119c0a6aeb15689486629d47db88f79b9755 /test/mgmt_auto_adjust.rb
parentfd6722ac69f72bc4783675f055ab567a9902c713 (diff)
downloadcmogstored-6b974dc9cb48e6af8e4ea9410141168208e7ca06.tar.gz
Debian GNU/kFreeBSD still does not have iostat :<
Diffstat (limited to 'test/mgmt_auto_adjust.rb')
-rw-r--r--test/mgmt_auto_adjust.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mgmt_auto_adjust.rb b/test/mgmt_auto_adjust.rb
index f2e01d6..8f89228 100644
--- a/test/mgmt_auto_adjust.rb
+++ b/test/mgmt_auto_adjust.rb
@@ -76,7 +76,8 @@ class TestMgmtAutoAdjust < Test::Unit::TestCase
     assert_operator cur_threads, :>, prev_threads,
            "prev_threads=#{cur_threads} > prev_threads=#{prev_threads}"
     assert_match(%r{updating server aio_threads=20}, File.read(@err.path))
-  end
+  end if `which iostat 2>/dev/null`.chomp.size != 0 &&
+         RUBY_PLATFORM !~ /kfreebsd-gnu/
 
   def test_aio_threads_auto_adjust_warn
     @client.write "server aio_threads = 1\r\n"