[CRIU] [PATCH] zdtm: suppress useless error messages

Andrei Vagin avagin at openvz.org
Sun Jan 28 11:21:37 MSK 2018


From: Andrei Vagin <avagin at virtuozzo.com>

Start test
./mxcsr --pidfile=mxcsr.pid --outfile=mxcsr.out
Run criu dump
Unable to kill 44: [Errno 3] No such process <--------------- this one
Run criu restore
Run criu dump

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index 2abeb426d..8ed161471 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -320,8 +320,7 @@ def wait_pid_die(pid, who, tmo = 30):
 	while stime < tmo:
 		try:
 			os.kill(int(pid), 0)
-		except Exception, e:
-			print "Unable to kill %d: %s" % (pid, e)
+		except OSError, e:
 			break
 
 		print "Wait for %s(%d) to die for %f" % (who, pid, stime)
-- 
2.13.6



More information about the CRIU mailing list