Skip to content

Commit 35c08fe

Browse files
author
Vasileios Karakasis
authored
Merge pull request #1278 from victorusu/bugfix/statistics_column
[bugfix] Fix string alignment in failure statistics
2 parents f532603 + aeccda5 commit 35c08fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

reframe/frontend/statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def failure_stats(self):
137137
stats_title = 'FAILURE STATISTICS'
138138
stats_end = line_width * '-'
139139
stats_body = []
140-
row_format = "{:<11} {:<5} {}"
141-
stats_hline = row_format.format(11*'-', 5*'-', 60*'-')
140+
row_format = "{:<13} {:<5} {}"
141+
stats_hline = row_format.format(13*'-', 5*'-', 60*'-')
142142
stats_header = row_format.format('Phase', '#', 'Failing test cases')
143143
num_tests = len(self.tasks(current_run))
144144
num_failures = 0

unittests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_failure_stats(self):
234234
returncode, stdout, stderr = self._run_reframe()
235235

236236
assert r'FAILURE STATISTICS' in stdout
237-
assert r'sanity 1 [SanityFailureCheck' in stdout
237+
assert r'sanity 1 [SanityFailureCheck' in stdout
238238
assert 'Traceback' not in stdout
239239
assert 'Traceback' not in stderr
240240
assert returncode != 0

0 commit comments

Comments
 (0)