[CRIU] [PATCH 2/2] zdtm.py: print shorter separators for less significant blocks
Pavel Emelyanov
xemul at parallels.com
Thu Nov 5 04:33:02 PST 2015
On 10/30/2015 05:12 PM, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at openvz.org>
>
> Signed-off-by: Andrew Vagin <avagin at openvz.org>
> ---
> test/zdtm.py | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/test/zdtm.py b/test/zdtm.py
> index 60d72ce..69ec14f 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -719,19 +719,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):
There's no such code in criu's master, so patch doesn't apply.
> 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
>
More information about the CRIU
mailing list