summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-07 10:53:09 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-07 10:53:09 +0100
commit3006be3e3a147d3f6efaf2097adde950efd62dc2 (patch)
tree97ecf1a570c7d9d434e61071f3ab5b4f30efca00 /kconfigtest.py
parentcfcb6a255229e8e99d6521dde3cf158c6c19dceb (diff)
Simplify shell().
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/kconfigtest.py b/kconfigtest.py
index 9545d47..b955aed 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -643,11 +643,10 @@ def test_defconfig(conf):
# Helper functions
#
+devnull = open(os.devnull, "w")
+
def shell(cmd):
- subprocess.Popen(cmd,
- shell = True,
- stdout = subprocess.PIPE,
- stderr = subprocess.PIPE).communicate()
+ subprocess.call(cmd, shell = True, stdout = devnull, stderr = devnull)
def rm_configs():
"""Delete any old ".config" (generated by the C implementation) and