Call "Dir.chdir" when no --parallel=N was given.

This should make "old" tests work with newer versions.
This commit is contained in:
Johan Holmberg 2012-07-09 22:52:43 +02:00
parent ffe0a34b40
commit b772c8b7f8

View File

@ -168,7 +168,9 @@ module Cmdtest
clog.background do |clog2|
clog2.notify("testmethod", @test_method) do
obj = @test_class.testcase_class.new(self, clog2, runner)
#Dir.chdir(obj._work_dir.path)
if runner.opts.parallel == 1
Dir.chdir(obj._work_dir.path)
end
obj.setup
begin
obj.send(@test_method)