aboutsummaryrefslogtreecommitdiffstats
path: root/tools/systeminfo.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-01-21 09:33:30 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-01-22 10:04:35 +0000
commite4718a97deafdb853335b13d472de0e273e191af (patch)
treedd61196fe1bf54c1baa6379afa7680ef8709d540 /tools/systeminfo.py
parent864832fd348efa21155b24a314dab22fe967c8c3 (diff)
report: add rst template for results reporting
Add a template that can be used for reporting vsperf release B results. This patch also fixes the line length issues in the markdown template. Change-Id: Id03f5c7eb84536697deca73d3fb397629b647a85 JIRA: VSPERF-181 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Diffstat (limited to 'tools/systeminfo.py')
-rw-r--r--tools/systeminfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/systeminfo.py b/tools/systeminfo.py
index 901b334e..62db852b 100644
--- a/tools/systeminfo.py
+++ b/tools/systeminfo.py
@@ -65,7 +65,7 @@ def get_cpu():
def get_nic():
"""Get NIC(s) information.
- :returns: Return NIC(s) information as a string
+ :returns: Return NIC(s) information as a list
"""
nics = []
output = subprocess.check_output('lspci', shell=True)
@@ -74,7 +74,7 @@ def get_nic():
for nic_pciid in S.getValue('WHITELIST_NICS'):
if line.startswith(nic_pciid):
nics.append(''.join(line.split(':')[2:]).strip())
- return ', '.join(nics).strip()
+ return nics
def get_platform():
"""Get platform information.