mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
zdtm.py: print shorter separators for less significant blocks
Signed-off-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
2fb61d3f9d
commit
a3bfe43ef9
@@ -779,19 +779,19 @@ def self_checkskip(tname):
|
||||
|
||||
return False
|
||||
|
||||
def print_sep(title, sep = "="):
|
||||
print (" " + title + " ").center(80, sep)
|
||||
def print_sep(title, sep = "=", width = 80):
|
||||
print (" " + title + " ").center(width, sep)
|
||||
|
||||
def grep_errors(fname):
|
||||
first = True
|
||||
for l in open(fname):
|
||||
if "Error" in l:
|
||||
if first:
|
||||
print_sep("grep Error")
|
||||
print_sep("grep Error", "-", 60)
|
||||
first = False
|
||||
print l,
|
||||
if not first:
|
||||
print_sep("ERROR OVER")
|
||||
print_sep("ERROR OVER", "-", 60)
|
||||
|
||||
def run_tests(opts):
|
||||
excl = None
|
||||
|
Reference in New Issue
Block a user