diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2014-05-10 12:41:35 +0100 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2014-05-10 12:41:35 +0100 |
commit | a93dd798d88277489374c45439384781a936cf78 (patch) | |
tree | 0ff592159762d0a889d6db0c7cbb3b52002b7e42 /tests/common.rb | |
parent | dc0cf937e50ea1abb7ce439a011531ddb3bbda02 (diff) | |
download | bindfs-a93dd798d88277489374c45439384781a936cf78.tar.gz |
(rm more trailing spaces)
Diffstat (limited to 'tests/common.rb')
-rwxr-xr-x | tests/common.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/common.rb b/tests/common.rb index c99016b..36576e5 100755 --- a/tests/common.rb +++ b/tests/common.rb @@ -53,7 +53,7 @@ def wait_for(options = {}, &condition) :max_sleep => 0.5, :max_time => 5 }.merge(options) - + start_time = Time.now sleep_time = options[:initial_sleep] while !`mount`.include?(`pwd`.strip) @@ -85,12 +85,12 @@ def testenv(bindfs_args, options = {}, &block) :valgrind => valgrind_options != nil, :valgrind_opts => valgrind_options }.merge(options) - + # todo: less repetitive and more careful error handling and cleanup puts "--- #{options[:title]} ---" puts "[ #{bindfs_args} ]" - + begin Dir.mkdir TESTDIR_NAME rescue Exception => ex @@ -145,7 +145,7 @@ def testenv(bindfs_args, options = {}, &block) fail("ERROR: failed to umount") testcase_ok = false end - + if !$?.success? fail("exit status: #{$?}") testcase_ok = false |