mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
zdtm.py: check testname.out.inprogress in error cases
If a test crashes, its logs may be in testname.out.inprogress. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
9f0c8075b6
commit
18c0fbc27c
@@ -427,6 +427,10 @@ class zdtm_test:
|
|||||||
|
|
||||||
res = tail(self.__name + '.out')
|
res = tail(self.__name + '.out')
|
||||||
if 'PASS' not in res.split():
|
if 'PASS' not in res.split():
|
||||||
|
if os.access(self.__name + '.out.inprogress', os.F_OK):
|
||||||
|
print_sep(self.__name + '.out.inprogress')
|
||||||
|
print open(self.__name + '.out.inprogress').read()
|
||||||
|
print_sep(self.__name + '.out.inprogress')
|
||||||
raise test_fail_exc("result check")
|
raise test_fail_exc("result check")
|
||||||
|
|
||||||
def getpid(self):
|
def getpid(self):
|
||||||
|
Reference in New Issue
Block a user