Skip to content

Commit 91e5089

Browse files
author
Samuel Moors
committed
use full words in summary
1 parent d060c2f commit 91e5089

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

easybuild/main.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,18 @@ def find_easyconfigs_by_specs(build_specs, robot_path, try_to_generate, testing=
114114
def summary(ecs_with_res):
115115
"""
116116
Compose summary of the build:
117-
* [S] for a successful build
118-
* [F] for a failed build
119-
* [-] for a build that didn’t run
117+
* [SUCCESS] for a successful build
118+
* [FAILED] for a failed build
119+
* [SKIPPED] for a build that didn’t run
120120
121121
:param ecs_with_res: list of tuples (ec, ec_res), ec is an EasyConfig object, and ec_res is a dict of the result
122122
"""
123-
summary_fmt = " * [{}] {}"
124-
success_map = {True: 'S', False: 'F', None: '-'}
123+
summary_fmt = " * {} {}"
124+
success_map = {
125+
True: f'{"[SUCCESS]":<9}',
126+
False: f'{"[FAILED]":<9}',
127+
None: f'{"[SKIPPED]":<9}',
128+
}
125129
lines = ["Summary:"]
126130
lines.extend([
127131
summary_fmt.format(success_map[ec_res.get('success', False)], ec['full_mod_name'])

0 commit comments

Comments
 (0)