From 525d2102fcc625435598729e8c972c147eefd24f Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 12 Apr 2015 01:33:19 +0000 Subject: Consider more block devices. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file_exhaustive.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 2664f95ba9..54b3244eba 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -160,11 +160,7 @@ class TestFileExhaustive < Test::Unit::TestCase def blockdev return @blockdev if defined? @blockdev if /linux/ =~ RUBY_PLATFORM - if File.exist? '/dev/loop0' - @blockdev = '/dev/loop0' - elsif File.exist? '/dev/sda' - @blockdev = '/dev/sda' - end + @blockdev = %w[/dev/loop0 /dev/sda /dev/vda /dev/xvda1].find {|f| File.exist? f } else @blockdev = nil end -- cgit v1.2.3