From 4a5d9fdb831c82d27682560d1b29b3c8b50a4cbc Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Fri, 22 Jul 2011 10:32:03 +0300 Subject: Tests: todo about better error handling --- tests/common.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3