diff options
-rw-r--r-- | scripts/lib/resulttool/report.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py index a48c59f632..f706280aa7 100644 --- a/scripts/lib/resulttool/report.py +++ b/scripts/lib/resulttool/report.py | |||
@@ -203,8 +203,22 @@ class ResultsTextReport(object): | |||
203 | testresults = resultutils.load_resultsdata(source_dir) | 203 | testresults = resultutils.load_resultsdata(source_dir) |
204 | for testsuite in testresults: | 204 | for testsuite in testresults: |
205 | for resultid in testresults[testsuite]: | 205 | for resultid in testresults[testsuite]: |
206 | skip = False | ||
206 | result = testresults[testsuite][resultid] | 207 | result = testresults[testsuite][resultid] |
207 | machine = result['configuration']['MACHINE'] | 208 | machine = result['configuration']['MACHINE'] |
209 | |||
210 | # Check to see if there is already results for these kinds of tests for the machine | ||
211 | for key in result['result'].keys(): | ||
212 | testtype = str(key).split('.')[0] | ||
213 | if ((machine in self.ptests and testtype == "ptestresult" and self.ptests[machine]) or | ||
214 | (machine in self.ltptests and testtype == "ltpiresult" and self.ltptests[machine]) or | ||
215 | (machine in self.ltpposixtests and testtype == "ltpposixresult" and self.ltpposixtests[machine])): | ||
216 | print("Already have test results for %s on %s, skipping %s" %(str(key).split('.')[0], machine, resultid)) | ||
217 | skip = True | ||
218 | break | ||
219 | if skip: | ||
220 | break | ||
221 | |||
208 | test_count_report = self.get_aggregated_test_result(logger, result, machine) | 222 | test_count_report = self.get_aggregated_test_result(logger, result, machine) |
209 | test_count_report['machine'] = machine | 223 | test_count_report['machine'] = machine |
210 | test_count_report['testseries'] = result['configuration']['TESTSERIES'] | 224 | test_count_report['testseries'] = result['configuration']['TESTSERIES'] |