fix rescue in file_system_test.rb
This commit is contained in:
parent
d20d75908d
commit
619e639eca
|
@ -30,7 +30,7 @@ class FileSystemTest < Test::Unit::TestCase
|
||||||
|
|
||||||
begin
|
begin
|
||||||
usage = sigar.file_system_usage fs.dir_name
|
usage = sigar.file_system_usage fs.dir_name
|
||||||
rescue err
|
rescue => err
|
||||||
if fs.type == Sigar::FSTYPE_LOCAL_DISK
|
if fs.type == Sigar::FSTYPE_LOCAL_DISK
|
||||||
raise err
|
raise err
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue