make test: improve test results printing

Accomodate longer test descriptions by increasing the headings
size.

Change-Id: I51c90b8d91feaa83b78972d0802d3054f8510f36
Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:
Klement Sekera
2017-01-13 07:25:25 +01:00
parent 8bf68e858a
commit 52e84f3cad
2 changed files with 4 additions and 4 deletions

View File

@ -665,11 +665,11 @@ class VppTestResult(unittest.TestResult):
unittest.TestResult.stopTest(self, test)
if self.verbosity > 0:
self.stream.writeln(single_line_delim)
self.stream.writeln("%-60s%s" % (self.getDescription(test),
self.stream.writeln("%-73s%s" % (self.getDescription(test),
self.result_string))
self.stream.writeln(single_line_delim)
else:
self.stream.writeln("%-60s%s" % (self.getDescription(test),
self.stream.writeln("%-73s%s" % (self.getDescription(test),
self.result_string))
def printErrors(self):

View File

@ -5,9 +5,9 @@ import os
import logging
""" @var formatting delimiter consisting of '=' characters """
double_line_delim = '=' * 70
double_line_delim = '=' * 78
""" @var formatting delimiter consisting of '-' characters """
single_line_delim = '-' * 70
single_line_delim = '-' * 78
def colorize(msg, color):