diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-07 10:53:09 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-07 10:53:09 +0100 |
| commit | 3006be3e3a147d3f6efaf2097adde950efd62dc2 (patch) | |
| tree | 97ecf1a570c7d9d434e61071f3ab5b4f30efca00 /kconfigtest.py | |
| parent | cfcb6a255229e8e99d6521dde3cf158c6c19dceb (diff) | |
Simplify shell().
Diffstat (limited to 'kconfigtest.py')
| -rw-r--r-- | kconfigtest.py | 7 |
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 |
