Skip to content

Commit

Permalink
fixup! Redirect prints from Spack to log file
Browse files Browse the repository at this point in the history
  • Loading branch information
dapomeroy committed Sep 14, 2023
1 parent 2bcacd0 commit 1c47f12
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/ramble/ramble/test/end_to_end/missing_required_dry_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
workspace = RambleCommand('workspace')


def test_missing_required_dry_run(mutable_config, mutable_mock_workspace_path, capsys):
def test_missing_required_dry_run(mutable_config, mutable_mock_workspace_path):
"""Tests tty.die at end of ramble.application_types.spack._create_spack_env"""
test_config = """
ramble:
Expand Down Expand Up @@ -71,10 +71,8 @@ def test_missing_required_dry_run(mutable_config, mutable_mock_workspace_path, c
ws._re_read()

with pytest.raises(RambleCommandError):
workspace('setup',
'--dry-run',
global_args=['-w', workspace_name])

captured = capsys.readouterr()
captured = workspace('setup',
'--dry-run',
global_args=['-w', workspace_name])

assert "Software spec wrf is not defined in environment wrfv3" in captured

0 comments on commit 1c47f12

Please sign in to comment.