summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/test/cmd/dev_build.py7
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,