Skip to content

Commit

Permalink
mention CPU arch name in comment for uploaded test report, if it's known
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Mar 3, 2020
1 parent 8307549 commit 6f5f553
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/tools/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ def post_easyconfigs_pr_test_report(pr_nr, test_report, msg, init_session_state,
'os_version': system_info['os_version'],
'pyver': system_info['python_version'].split(' ')[0],
}

# also mention CPU architecture name, but only if it's known
if system_info['cpu_arch_name'] != UNKNOWN:
short_system_info['cpu_model'] += " (%s)" % system_info['cpu_arch_name']

comment_lines = [
"Test report by @%s" % user,
('**FAILED**', '**SUCCESS**')[success],
Expand Down

0 comments on commit 6f5f553

Please sign in to comment.