# HG changeset patch # User Andrey Mazo # Date 1257173295 -10800 # Node ID 458a6854c2588a1cfae71178e24357827cba80d7 # Parent 5800fd778af9ea3e525ffa7e036793b3d61bca6a Set TestSuite's working directory to testpy_output_dir. To achieve this use absolute paths for xml_results_file and job.tmp_file_name. diff -r 5800fd778af9 -r 458a6854c258 test.py --- a/test.py Mon Nov 02 12:28:38 2009 +0300 +++ b/test.py Mon Nov 02 17:48:15 2009 +0300 @@ -896,7 +896,7 @@ # Create the main output file and start filling it with XML. We need to # do this since the tests will just append individual results to this file. # - xml_results_file = os.path.join(testpy_output_dir, "results.xml") + xml_results_file = os.path.abspath(os.path.join(testpy_output_dir, "results.xml")) f = open(xml_results_file, 'w') f.write('\n') f.write('\n') @@ -1001,8 +1001,8 @@ job = Job() job.set_is_example(False) job.set_display_name(test) - job.set_tmp_file_name(os.path.join(testpy_output_dir, "%s.xml" % test)) - job.set_cwd(os.getcwd()) + job.set_tmp_file_name(os.path.abspath(os.path.join(testpy_output_dir, "%s.xml" % test))) + job.set_cwd(testpy_output_dir) job.set_basedir(os.getcwd()) if (options.multiple): multiple = " --multiple"