Commit edc19f13 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm.py: Print out file if it exists

Sometimes tests fail before generating .out file, so print its
contents only if it exists.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b84642ff
......@@ -265,9 +265,10 @@ class zdtm_test:
os.unlink(self.__pidfile())
def print_output(self):
print "Test output: " + "=" * 32
print open(self.__name + '.out').read()
print " <<< " + "=" * 32
if os.access(self.__name + '.out', os.R_OK):
print "Test output: " + "=" * 32
print open(self.__name + '.out').read()
print " <<< " + "=" * 32
test_classes = { 'zdtm': zdtm_test }
......
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