diff options
author | Chad Versace <chad@chad-versace.us> | 2011-07-14 13:45:03 -0700 |
---|---|---|
committer | Chad Versace <chad@chad-versace.us> | 2011-07-14 14:07:22 -0700 |
commit | 0844ed98597ddbefd2087ce3e04b28e6450fb073 (patch) | |
tree | ce9651bda89d907ddae068d58661fcf314db5387 | |
parent | 97e2b72067fd0da5371a10855b6f066c227eb3a9 (diff) |
piglit-summary-html: Skip result files in old format and emit warning
This was requested by Ian Romanick.
Signed-off-by: Chad Versace <chad@chad-versace.us>
-rwxr-xr-x | piglit-summary-html.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py index e75aca9bb..63d8b60ba 100755 --- a/piglit-summary-html.py +++ b/piglit-summary-html.py @@ -317,7 +317,12 @@ def main(): summaryDir = args[0] core.checkDir(summaryDir, not OptionOverwrite) - results = [loadresult(descr) for descr in OptionList] + results = [] + for result_dir in OptionList: + try: + results.append(loadresult(result_dir)) + except core.ResultFileInOldFormatError as e: + print('warning: skipping result file because it is in old format, json is now required: file={0}'.format(e.message)) summary = framework.summary.Summary(results) for j in range(len(summary.testruns)): |