From 18c0fbc27c4c0d0e827c3421128906eb9c78f28c Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Sat, 20 Aug 2016 03:18:00 +0300 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- test/zdtm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/zdtm.py b/test/zdtm.py index 2455511fe..5424c20d4 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -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):