Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reframe/frontend/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _print_failure_info(rec, runid, total_runs):
continue

for r in run_info['testcases']:
if r['result'] in {'pass', 'abort', 'skip', 'fail_deps'}:
if r['result'] in {'pass', 'xfail', 'abort',
'skip', 'fail_deps'}:
continue

_print_failure_info(r, run_no, len(report['runs']))
Expand Down
11 changes: 11 additions & 0 deletions unittests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,17 @@ def test_check_failure(run_reframe):
assert returncode != 0


def test_check_xfailures(run_reframe):
returncode, stdout, _ = run_reframe(
checkpath=['unittests/resources/checks_unlisted/xfailures.py']
)
assert returncode != 0
assert 'FAILED' in stdout
assert 'Ran 8/8 test case(s)' in stdout
assert '4 failure(s), 2 expected failure(s)' in stdout
assert 'Traceback' not in stdout


def test_check_setup_failure(run_reframe):
returncode, stdout, stderr = run_reframe(
checkpath=['unittests/resources/checks/frontend_checks.py'],
Expand Down
Loading