From 3006be3e3a147d3f6efaf2097adde950efd62dc2 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 7 Dec 2012 10:53:09 +0100 Subject: Simplify shell(). --- kconfigtest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'kconfigtest.py') 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 -- cgit v1.2.3