reset current directory for "teardown"

and after processing each test method.
should pass resently added tests.
This commit is contained in:
Johan Holmberg 2016-06-04 21:12:25 +02:00
parent 4cbbac7ec1
commit 166b0f310b

View File

@ -185,11 +185,12 @@ module Cmdtest
io.puts "BACKTRACE:"
io.puts e.backtrace.map {|line| " " + line }
clog.assert_error(io.string)
ensure
Dir.chdir(ORIG_CWD)
end
Dir.chdir(obj._work_dir.path)
obj.teardown
end
ensure
Dir.chdir(ORIG_CWD)
end
end