bugfix: cdash tests shoudln't modify working directory

The latest cdash test creates a local cdash_reports directory, but it
should do that in a tmpdir.
This commit is contained in:
Todd Gamblin 2020-01-01 22:57:53 -08:00
parent 4beb9fc5d3
commit 9ed34f686f

View File

@ -678,6 +678,7 @@ def test_install_help_cdash(capsys):
@pytest.mark.disable_clean_stage_check @pytest.mark.disable_clean_stage_check
def test_cdash_auth_token(tmpdir, install_mockery, capfd): def test_cdash_auth_token(tmpdir, install_mockery, capfd):
# capfd interferes with Spack's capturing # capfd interferes with Spack's capturing
with tmpdir.as_cwd():
with capfd.disabled(): with capfd.disabled():
os.environ['SPACK_CDASH_AUTH_TOKEN'] = 'asdf' os.environ['SPACK_CDASH_AUTH_TOKEN'] = 'asdf'
out = install( out = install(