mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
parent
9f0c8075b6
commit
18c0fbc27c
@ -427,6 +427,10 @@ class zdtm_test:
|
||||
|
||||
res = tail(self.__name + '.out')
|
||||
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")
|
||||
|
||||
def getpid(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user