summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2020-12-12 10:59:48 -0500
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2020-12-22 11:26:40 -0500
commit5f4c24218758b2419ea9723f239e0541f0fc997c (patch)
tree88fe4f547c3e68fdcf6252e0af75b602e2c8956a /framework
parent603deba4ab66e2a8948693a14d715e536caddcc5 (diff)
summary: Add -g/--fixes to console-mode output
in the words of @ajax: The mode's already there, just not wired up for some reason. but this is -g because -f is already taken and I hate uppercase opts Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/432>
Diffstat (limited to 'framework')
-rw-r--r--framework/programs/summary.py5
-rw-r--r--framework/summary/console_.py4
2 files changed, 8 insertions, 1 deletions
diff --git a/framework/programs/summary.py b/framework/programs/summary.py
index bbf9002c8..c61ae9711 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -138,6 +138,11 @@ def console(input_):
dest='mode',
help="Only display the summary, not the individual "
"test results")
+ excGroup1.add_argument("-g", "--fixes",
+ action="store_const",
+ const="fixes",
+ dest='mode',
+ help="Only display tests that have been fixed.")
excGroup1.add_argument("-i", "--incomplete",
action="store_const",
const="incomplete",
diff --git a/framework/summary/console_.py b/framework/summary/console_.py
index 4b392430d..e8311a910 100644
--- a/framework/summary/console_.py
+++ b/framework/summary/console_.py
@@ -105,7 +105,7 @@ def _print_result(results, list_):
def console(resultsFiles, mode):
""" Write summary information to the console for the given list of
results files in the given mode."""
- assert mode in ['summary', 'diff', 'incomplete', 'problems', 'regressions', 'all'], mode
+ assert mode in ['summary', 'diff', 'incomplete', 'fixes', 'problems', 'regressions', 'all'], mode
results = Results([backends.load(r) for r in resultsFiles])
# Print the name of the test and the status from each test run
@@ -117,6 +117,8 @@ def console(resultsFiles, mode):
_print_summary(results)
elif mode == 'incomplete':
_print_result(results, results.names.all_incomplete)
+ elif mode == 'fixes':
+ _print_result(results, results.names.all_fixes)
elif mode == 'problems':
_print_result(results, results.names.all_problems)
elif mode == 'regressions':