[Piglit] [PATCH 2/7] framework/tests: remove old group separator strings

Dylan Baker baker.dylan.c at gmail.com
Wed Sep 2 14:18:21 PDT 2015


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.baker at 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



More information about the Piglit mailing list