mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
zdtm: check an exit code of a straced restore
Currently zdtm doesn't detect when restore failed, if it is executed with strace. With this patch, fake-restore.sh creates a test file, and zdtm is able to distinguish when restore failed. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
509fac32dd
commit
251dad530b
@@ -984,7 +984,8 @@ class criu:
|
||||
grep_errors(os.path.join(__ddir, log))
|
||||
if ret == 0:
|
||||
return
|
||||
if self.__test.blocking() or (self.__sat and action == 'restore'):
|
||||
rst_succeeded = os.access(os.path.join(__ddir, "restore-succeeded"), os.F_OK)
|
||||
if self.__test.blocking() or (self.__sat and action == 'restore' and rst_succeeded):
|
||||
raise test_fail_expected_exc(action)
|
||||
else:
|
||||
raise test_fail_exc("CRIU %s" % action)
|
||||
|
Reference in New Issue
Block a user