diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2011-07-22 10:32:03 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2011-07-22 10:32:22 +0300 |
commit | 4a5d9fdb831c82d27682560d1b29b3c8b50a4cbc (patch) | |
tree | 3b921eaba70a53259f9e31d982d24ebe3f5cb9fe /tests | |
parent | 1ca0ade6998afe770c5124902ebf240956e08f53 (diff) | |
download | bindfs-4a5d9fdb831c82d27682560d1b29b3c8b50a4cbc.tar.gz |
Tests: todo about better error handling
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/common.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/common.rb b/tests/common.rb index f15110c..593d1e0 100755 --- a/tests/common.rb +++ b/tests/common.rb @@ -33,6 +33,8 @@ $only_these_tests = nil # Prepares a test environment with a mounted directory def testenv(bindfs_args, &block) + # todo: less repetitive and more careful error handling and cleanup + testcase_title = bindfs_args return unless $only_these_tests == nil or $only_these_tests.member? testcase_title @@ -68,7 +70,6 @@ def testenv(bindfs_args, &block) rescue Exception => ex $stderr.puts "ERROR running bindfs" $stderr.puts ex - Dir.chdir '..' system("rm -Rf #{TESTDIR_NAME}") exit! 1 end |