Skip to content

Commit 3220e99

Browse files
committed
Add CPU architecture as found by EB to test report
1 parent 12041a1 commit 3220e99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

easybuild/tools/systemtools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ def get_system_info():
770770
return {
771771
'core_count': get_avail_core_count(),
772772
'total_memory': get_total_memory(),
773+
'cpu_arch': get_cpu_architecture(),
773774
'cpu_arch_name': get_cpu_arch_name(),
774775
'cpu_model': get_cpu_model(),
775776
'cpu_speed': get_cpu_speed(),

easybuild/tools/testing.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,11 @@ def post_easyconfigs_pr_test_report(pr_nr, test_report, msg, init_session_state,
268268
if system_info['cpu_arch_name'] != UNKNOWN:
269269
system_info['cpu_model'] += " (%s)" % system_info['cpu_arch_name']
270270

271-
short_system_info = "%(hostname)s - %(os_type)s %(os_name)s %(os_version)s, %(cpu_model)s, Python %(pyver)s" % {
271+
os_info = '%(hostname)s - %(os_type)s %(os_name)s %(os_version)s' % system_info
272+
short_system_info = "%(os_info)s, %(cpu_arch)s, %(cpu_model)s, Python %(pyver)s" % {
273+
'os_info': os_info,
274+
'cpu_arch': system_info['cpu_arch'],
272275
'cpu_model': system_info['cpu_model'],
273-
'hostname': system_info['hostname'],
274-
'os_name': system_info['os_name'],
275-
'os_type': system_info['os_type'],
276-
'os_version': system_info['os_version'],
277276
'pyver': system_info['python_version'].split(' ')[0],
278277
}
279278

0 commit comments

Comments
 (0)