diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-06-10 17:10:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 08:10:57 -0700 |
commit | 478a8aff0e9a6b19baac2c291a3f51472381197d (patch) | |
tree | 946ff8372b6b5c29a69379819c6e80cbc4e03a87 /lib | |
parent | 2827dca905bd2ae51a0b10ccf634199648f24e80 (diff) | |
download | spack-478a8aff0e9a6b19baac2c291a3f51472381197d.tar.gz spack-478a8aff0e9a6b19baac2c291a3f51472381197d.tar.bz2 spack-478a8aff0e9a6b19baac2c291a3f51472381197d.tar.xz spack-478a8aff0e9a6b19baac2c291a3f51472381197d.zip |
Move to temporary directory before running dev-build test (#17028)
Without this the test would leave spurious "spack-build-*.txt"
files in the current working directory.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/cmd/dev_build.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/spack/spack/test/cmd/dev_build.py b/lib/spack/spack/test/cmd/dev_build.py index 271faa845d..94c7690de6 100644 --- a/lib/spack/spack/test/cmd/dev_build.py +++ b/lib/spack/spack/test/cmd/dev_build.py @@ -110,9 +110,10 @@ def test_dev_build_drop_in(tmpdir, mock_packages, monkeypatch, pass monkeypatch.setattr(spack.build_environment, 'module', module) - output = dev_build('-b', 'edit', '--drop-in', 'sh', - 'dev-build-test-install@0.0.0') - assert "lib/spack/env" in output + with tmpdir.as_cwd(): + output = dev_build('-b', 'edit', '--drop-in', 'sh', + 'dev-build-test-install@0.0.0') + assert "lib/spack/env" in output def test_dev_build_fails_already_installed(tmpdir, mock_packages, |