summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hardware/test/TestHardwareBase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hardware/test/TestHardwareBase.py b/src/hardware/test/TestHardwareBase.py
index 310210c..b0b0cf3 100644
--- a/src/hardware/test/TestHardwareBase.py
+++ b/src/hardware/test/TestHardwareBase.py
@@ -113,7 +113,8 @@ def parse_dmi_output(dmioutput):
return devices
def get_dmi_output(type_p):
- return subprocess.check_output("dmidecode -t %d" % type_p, shell=True)
+ p = subprocess.Popen(["dmidecode", "-t", str(type_p)], stdout=subprocess.PIPE)
+ return p.communicate()[0]
class HardwareTestCase(LmiTestCase):
"""