From 38af406c89102cb81b59a276b6bcbc8d540add13 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Tue, 28 Aug 2012 19:58:56 +0000 Subject: [PATCH] updated naming of rosunit and rostest result files --- tools/rosunit/src/rosunit/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/rosunit/src/rosunit/core.py b/tools/rosunit/src/rosunit/core.py index 6322bd4a..e9b2f52f 100644 --- a/tools/rosunit/src/rosunit/core.py +++ b/tools/rosunit/src/rosunit/core.py @@ -107,9 +107,9 @@ def xml_results_file(test_pkg, test_name, is_rostest=False): if c in test_name: test_name = test_name.replace(c, '_') if is_rostest: - return os.path.join(test_dir, 'TEST-rostest__%s.xml'%test_name) + return os.path.join(test_dir, 'rostest-%s.xml'%test_name) else: - return os.path.join(test_dir, 'TEST-%s.xml'%test_name) + return os.path.join(test_dir, 'rosunit-%s.xml'%test_name) def rostest_name_from_path(pkg_dir, test_file): """ @@ -156,5 +156,6 @@ def create_xml_runner(test_pkg, test_name, results_file=None, is_rostest=False): print "[ROSUNIT] Outputting test results to %s"%results_file outstream = open(results_file, 'w') + outstream.write('\n') return XMLTestRunner(stream=outstream)