Skip to content

Commit

Permalink
test no longer has configure error in output
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Mar 19, 2021
1 parent 77f8706 commit 112ffba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/spack/spack/test/cmd/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,9 @@ def test_show_log_on_error(mock_packages, mock_archive, mock_fetch,
fail_on_error=False)
assert isinstance(install.error, spack.build_environment.ChildError)
assert install.error.pkg.name == 'build-error'
assert 'Full build log:' in out

print(out)

# Message shows up for ProcessError (1) and output (1)
errors = [line for line in out.split('\n')
if 'configure: error: cannot run C compiled programs' in line]
assert len(errors) == 2
assert '==> Installing build-error' in out
assert 'See build log for details:' in out


def test_install_overwrite(
Expand Down

0 comments on commit 112ffba

Please sign in to comment.