tally_sheet.py::sprint_report increased "Boot Type" field width
- There are now boot type names that exceed the old width of 30.
Change-Id: I1b6d7b3e27c9c0ee917bf5ff96400d1249674e93
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/tally_sheet.py b/lib/tally_sheet.py
index 2802008..7e6c7ed 100755
--- a/lib/tally_sheet.py
+++ b/lib/tally_sheet.py
@@ -57,12 +57,12 @@
Example result:
- Boot Type Total Pass Fail
- ------------------------------ ----- ---- ----
- BMC Power On 2 1 1
- BMC Power Off 1 1 0
- ==============================================
- Totals 3 2 1
+ Boot Type Total Pass Fail
+ ----------------------------------- ----- ---- ----
+ BMC Power On 2 1 1
+ BMC Power Off 1 1 0
+ ===================================================
+ Totals 3 2 1
"""
@@ -262,8 +262,8 @@
buffer = ""
# Build format strings.
col_names = [self.__row_key_field_name.title()]
- report_width = 30
- key_width = 30
+ report_width = 40
+ key_width = 40
format_string = '{0:<' + str(key_width) + '}'
dash_format_string = '{0:-<' + str(key_width) + '}'
field_num = 0