Skip to content

Commit b137cb2

Browse files
authored
Fix --output flag on gh_parse.py (#3787)
Broken since #3742
1 parent 9a1cc33 commit b137cb2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/gh_parse.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def key(column):
453453
for env, counts in items.items():
454454
for action in INTERESTING_ACTIONS:
455455
if action in counts:
456-
per_testkey_result.setdefault(env, short_action(action))
456+
per_testkey_result.setdefault(env, action)
457457
break
458458

459459
# Once we know test is interesting, complete the row
@@ -463,7 +463,7 @@ def key(column):
463463
continue
464464
for action in (PASS, SKIP):
465465
if action in counts:
466-
per_testkey_result.setdefault(env, short_action(action))
466+
per_testkey_result.setdefault(env, action)
467467
break
468468

469469
if not per_testkey_result:
@@ -472,10 +472,11 @@ def key(column):
472472
table = []
473473
for test_key, items in simplified_results.items():
474474
package_name, testname = test_key
475+
items_proc = dict((k, short_action(v)) for (k, v) in items.items())
475476
table.append(
476477
{
477478
"Test Name": testname,
478-
**items,
479+
**items_proc,
479480
}
480481
)
481482
table_txt = format_table(table, markdown=markdown)

0 commit comments

Comments
 (0)