Commit 18c0fbc2 authored by Andrei Vagin's avatar Andrei Vagin Committed by Pavel Emelyanov

zdtm.py: check testname.out.inprogress in error cases

If a test crashes, its logs may be in testname.out.inprogress.
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9f0c8075
......@@ -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):
......
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