[Piglit] [PATCH 1/5] junit_backend_tests.py: make schema path robust

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Thu Dec 17 16:15:49 PST 2015


From: Dylan Baker <baker.dylan.c at gmail.com>

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/tests/junit_backends_tests.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/tests/junit_backends_tests.py b/framework/tests/junit_backends_tests.py
index 7d5a3fc..40c59ed 100644
--- a/framework/tests/junit_backends_tests.py
+++ b/framework/tests/junit_backends_tests.py
@@ -37,7 +37,7 @@ import framework.tests.utils as utils
 from .backends_tests import BACKEND_INITIAL_META
 
 
-JUNIT_SCHEMA = 'framework/tests/schema/junit-7.xsd'
+JUNIT_SCHEMA = os.path.join(os.path.dirname(__file__), 'schema', 'junit-7.xsd')
 
 doc_formatter = utils.DocFormatter({'separator': grouptools.SEPARATOR})
 
@@ -203,7 +203,7 @@ class TestJUnitLoad(utils.StaticDirectory):
     def setup_class(cls):
         super(TestJUnitLoad, cls).setup_class()
         cls.xml_file = os.path.join(cls.tdir, 'results.xml')
-        
+
         with open(cls.xml_file, 'w') as f:
             f.write(_XML)
 
-- 
2.6.4



More information about the Piglit mailing list