diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-06-29 19:14:25 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-06-29 19:14:25 +0000 |
commit | 5c23a1a7fdf1377a58cb25b23d8d407abeabb896 (patch) | |
tree | 7676b0b98c2320945ae699c621a2a9d2d09a1484 /sysutils/bamf/files/patch-tests_gtester2xunit.py | |
parent | Add py-ttictoc (diff) |
Update to 0.5.4
Pass maintainership to submitter
PR: 243490
Submitted by: Olivier Duchateau <duchateau.olivier@gmail.com>
Notes
Notes:
svn path=/head/; revision=540826
Diffstat (limited to 'sysutils/bamf/files/patch-tests_gtester2xunit.py')
-rw-r--r-- | sysutils/bamf/files/patch-tests_gtester2xunit.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/bamf/files/patch-tests_gtester2xunit.py b/sysutils/bamf/files/patch-tests_gtester2xunit.py new file mode 100644 index 000000000000..585123a4e699 --- /dev/null +++ b/sysutils/bamf/files/patch-tests_gtester2xunit.py @@ -0,0 +1,27 @@ +--- tests/gtester2xunit.py.orig 2018-11-07 22:39:11 UTC ++++ tests/gtester2xunit.py +@@ -1,18 +1,17 @@ + #! /usr/bin/python + from argparse import ArgumentParser +-import libxslt +-import libxml2 + import sys + import os ++from lxml import etree + + XSL_TRANSFORM='/usr/share/gtester2xunit/gtester.xsl' + + def transform_file(input_filename, output_filename, xsl_file): +- gtester = libxml2.parseFile(xsl_file) +- style = libxslt.parseStylesheetDoc(gtester) +- doc = libxml2.parseFile(input_filename) +- result = style.applyStylesheet(doc, None) +- result.saveFormatFile(filename=output_filename, format=True) ++ gtester = etree.parse(xsl_file) ++ style = etree.XSLT(gtester) ++ doc = etree.parse(input_filename) ++ result = style(doc) ++ result.write(filename=output_filename, format=True) + + + def get_output_filename(input_filename): |