[CRIU] [PATCH 2/5] zdtm.py: suppress umount output
Tycho Andersen
tycho.andersen at canonical.com
Mon Nov 23 12:55:25 PST 2015
This clutters up the test stdout.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
test/zdtm.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/zdtm.py b/test/zdtm.py
index 2e701b3..ee270e1 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -44,7 +44,8 @@ tests_root = None
def clean_tests_root():
global tests_root
- subprocess.call(["umount", tests_root])
+ with open(os.devnull, "rw") as null:
+ subprocess.call(["umount", tests_root], stdout=null, stderr=null)
if tests_root:
os.rmdir(tests_root)
--
2.6.2
More information about the CRIU
mailing list