2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

zdtm.py: check for link remap files presence on test end

These files have to be removed after successful restore.

v2:
Check link remap files only for tests with "--link-remap" option in
descriptor.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Stanislav Kinsburskiy 2016-08-02 16:46:00 +03:00 committed by Pavel Emelyanov
parent 2eb1dde66b
commit 3e840917c9

View File

@ -950,6 +950,13 @@ def check_visible_state(test, state, opts):
print "%s: New mounts appeared: %s" % (pid, new_mounts)
raise test_fail_exc("mounts compare")
if '--link-remap' in test.getdopts():
import glob
link_remap_list = glob.glob(os.path.dirname(test.getname()) + '/link_remap*')
if link_remap_list:
print "%s: link-remap files left: %s" % (test.getname(), link_remap_list)
raise test_fail_exc("link remaps left")
class noop_freezer:
def __init__(self):