From 2cae2d0f278bec913fc43a38d4aab581cc7b7d9a Mon Sep 17 00:00:00 2001 From: psakievich Date: Tue, 17 Dec 2024 15:47:28 -0700 Subject: [PATCH] Update lib/spack/spack/test/cmd/build_env.py --- lib/spack/spack/test/cmd/build_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/test/cmd/build_env.py b/lib/spack/spack/test/cmd/build_env.py index bb0907e6984..86843d12900 100644 --- a/lib/spack/spack/test/cmd/build_env.py +++ b/lib/spack/spack/test/cmd/build_env.py @@ -69,7 +69,7 @@ def test_pickle(tmpdir): @pytest.mark.usefixtures("config", "mock_packages", "working_env") def test_cd(cd_key, tmpdir, monkeypatch, capfd): """test that a subshell will navigate using spack cd before running commands""" - cmd = "pwd" if sys.platform != "win32" else 'powershell.exe -Command "& {(Get-Location).Path}' + cmd = "pwd" if sys.platform != "win32" else 'powershell.exe -Command "& {(Get-Location).Path}"' def mock_execvp(_, args): """os.execvp will kill take over the pytest process when it is successful"""