There were still a couple of '/' delemited strings floating around in the tests. use grouptools.join to avoid this being a problem.
Signed-off-by: Dylan Baker <dylanx.c.ba...@intel.com> --- framework/tests/junit_backends_tests.py | 34 +++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/framework/tests/junit_backends_tests.py b/framework/tests/junit_backends_tests.py index 74329ac..7e82f01 100644 --- a/framework/tests/junit_backends_tests.py +++ b/framework/tests/junit_backends_tests.py @@ -120,22 +120,24 @@ class TestJUnitMultiTest(TestJUnitSingleTest): cls.test_file = os.path.join(cls.tdir, 'results.xml') test = backends.junit.JUnitBackend(cls.tdir) test.initialize(BACKEND_INITIAL_META) - with test.write_test(grouptools.join('a', 'test', 'group', 'test1')) as t: - t(results.TestResult({ - 'time': 1.2345, - 'result': 'pass', - 'out': 'this is stdout', - 'err': 'this is stderr', - 'command': 'foo', - })) - with test.write_test('a/different/test/group/test2') as t: - t(results.TestResult({ - 'time': 1.2345, - 'result': 'fail', - 'out': 'this is stdout', - 'err': 'this is stderr', - 'command': 'foo', - })) + with test.write_test( + grouptools.join('a', 'test', 'group', 'test1')) as t: + t(results.TestResult({ + 'time': 1.2345, + 'result': 'pass', + 'out': 'this is stdout', + 'err': 'this is stderr', + 'command': 'foo', + })) + with test.write_test( + grouptools.join('a', 'different', 'test', 'group', 'test2')) as t: + t(results.TestResult({ + 'time': 1.2345, + 'result': 'fail', + 'out': 'this is stdout', + 'err': 'this is stderr', + 'command': 'foo', + })) test.finalize() def test_xml_well_formed(self): -- 2.5.1 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit