Skip to content

Commit

Permalink
adding parameter in pytest to print in stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 committed Jun 17, 2024
1 parent cdb7bbe commit 7d14640
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Test with pytest
shell: bash -el {0}
run: |
python -m pytest ./hnn_core/tests/test_parallel_backends.py --cov=hnn_core --cov-report=xml
python -m pytest ./hnn_core/tests/test_parallel_backends.py --cov=hnn_core --cov-report=xml -s
# - name: Upload coverage to Codecov
# shell: bash -el {0}
Expand Down
4 changes: 3 additions & 1 deletion hnn_core/tests/test_parallel_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ def test_mpi_failure(run_hnn_core_fixture):
assert "MPI processes are unable to reach each other" in stdout

expected_string = "Child process failed unexpectedly"
assert len(record) == 1
print(record[0].message.args[0])
assert record[0].message.args[0] == expected_string
assert len(record) == 1


del environ["OMPI_MCA_btl"]

0 comments on commit 7d14640

Please sign in to comment.