Commit 63e128a9 authored by Andrei Vagin's avatar Andrei Vagin Committed by Pavel Emelyanov

test: skip pre-dump images in socket-tcp*.hook

These hooks opens inetsk.img, but it doesn't exist if
processes were pre-dumped.

travis-ci: success for test: skip pre-dump images in socket-tcp*.hook
Reported-by: 's avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 1a89b88c
......@@ -22,7 +22,11 @@ if sys.argv[1] != "--post-restore":
print "Check TCP images"
def get_sockets(image_dir):
f = open(os.path.join(image_dir, "inetsk.img"))
fname = os.path.join(image_dir, "inetsk.img")
if not os.access(fname, os.F_OK):
return None
f = open(fname)
sockets = pycriu.images.load(f)
sockets = sockets["entries"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment