Commit a3bfe43e authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm.py: print shorter separators for less significant blocks

Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2fb61d3f
...@@ -779,19 +779,19 @@ def self_checkskip(tname): ...@@ -779,19 +779,19 @@ def self_checkskip(tname):
return False return False
def print_sep(title, sep = "="): def print_sep(title, sep = "=", width = 80):
print (" " + title + " ").center(80, sep) print (" " + title + " ").center(width, sep)
def grep_errors(fname): def grep_errors(fname):
first = True first = True
for l in open(fname): for l in open(fname):
if "Error" in l: if "Error" in l:
if first: if first:
print_sep("grep Error") print_sep("grep Error", "-", 60)
first = False first = False
print l, print l,
if not first: if not first:
print_sep("ERROR OVER") print_sep("ERROR OVER", "-", 60)
def run_tests(opts): def run_tests(opts):
excl = None excl = None
......
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