[CRIU] [PATCH v2 1/3] zdtm.py: suppress umount output

Tycho Andersen tycho.andersen at canonical.com
Tue Nov 24 13:28:16 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 b9bcb4f..f571e67 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