[Piglit] [PATCH 4/4] framework: add command line switch to enable junit subtests
Dylan Baker
dylan at pnwbakers.com
Fri Aug 5 00:02:42 UTC 2016
---
framework/programs/run.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/framework/programs/run.py b/framework/programs/run.py
index 686f37e..4bd1ca4 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -151,6 +151,10 @@ def _run_parser(input_):
type=str,
default="",
help="suffix string to append to each test name in junit")
+ parser.add_argument("--junit-subtests",
+ action='store_true',
+ help="Encode tests with subtets as testsuite elements. "
+ "This may not work on all xUnit implementations.")
log_parser = parser.add_mutually_exclusive_group()
log_parser.add_argument('-v', '--verbose',
action='store_const',
@@ -282,7 +286,8 @@ def run(input_):
backend = backends.get_backend(args.backend)(
args.results_path,
- junit_suffix=args.junit_suffix)
+ junit_suffix=args.junit_suffix,
+ junit_subtests=args.junit_subtests)
backend.initialize(_create_metadata(args, results.name))
profile = framework.profile.merge_test_profiles(args.test_profile)
--
git-series 0.8.7
More information about the Piglit
mailing list