reset current directory for "teardown"
and after processing each test method. should pass resently added tests.
This commit is contained in:
parent
4cbbac7ec1
commit
166b0f310b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user