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

Vinson Lee vlee at freedesktop.org
Fri Dec 18 15:12:56 PST 2015


On Thu, Dec 17, 2015 at 4:15 PM,  <baker.dylan.c at gmail.com> wrote:
> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Vinson Lee <vlee at freedesktop.org>


More information about the Piglit mailing list