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:
parent
4beb9fc5d3
commit
9ed34f686f
@ -678,11 +678,12 @@ 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 capfd.disabled():
|
with tmpdir.as_cwd():
|
||||||
os.environ['SPACK_CDASH_AUTH_TOKEN'] = 'asdf'
|
with capfd.disabled():
|
||||||
out = install(
|
os.environ['SPACK_CDASH_AUTH_TOKEN'] = 'asdf'
|
||||||
'-v',
|
out = install(
|
||||||
'--log-file=cdash_reports',
|
'-v',
|
||||||
'--log-format=cdash',
|
'--log-file=cdash_reports',
|
||||||
'a')
|
'--log-format=cdash',
|
||||||
assert 'Using CDash auth token from environment' in out
|
'a')
|
||||||
|
assert 'Using CDash auth token from environment' in out
|
||||||
|
Loading…
Reference in New Issue
Block a user