diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-09-27 19:20:03 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-10-11 12:13:56 +0200 |
commit | 36d863c8e181ab939a2ed293d76b61f3c5abb120 (patch) | |
tree | 76d7dd3d61713a0352bb5f6258db80fc6629217e | |
parent | f601713400752a044ad4167dcf9af8f8a34d94c4 (diff) |
HACK: record testname list for debuggingdeqp-run-multi
-rw-r--r-- | framework/profile.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/profile.py b/framework/profile.py index a4f18a456..9533043ca 100644 --- a/framework/profile.py +++ b/framework/profile.py @@ -382,6 +382,7 @@ class WorkItemBuilder(object): self.process_isolation = process_isolation self.results = dict((r.workitemid, r) for r in results or []) self.workitemid = 1 + self.testnames = [] def _add_workitem(self, workitems, runner, tests): workitem = TestWorkItem(runner, tests, workitemid=self.workitemid) @@ -399,6 +400,7 @@ class WorkItemBuilder(object): # Group tests by runner runners = collections.OrderedDict() for test in test_iter: + self.testnames.append(test.name) if test.runner in runners: runners[test.runner].append(test) else: @@ -453,6 +455,11 @@ def run(profiles, logger, backend, concurrency='some', profiles = [(p, workitem_builder(p.itertests())) for p in profiles] log = LogManager(logger, sum(len(l) for _, l in profiles)) + #HACK + with open('piglit.testnames', 'w') as filp: + for test in workitem_builder.testnames: + print(test, file=filp) + # check that after the filters are run there are actually tests to run. if not any(l for _, l in profiles): raise exceptions.PiglitUserError('no matching tests') |