diff --git a/scripts/test/test_devcontainer_host.py b/scripts/test/test_devcontainer_host.py index 18e00decb..6ed22182e 100644 --- a/scripts/test/test_devcontainer_host.py +++ b/scripts/test/test_devcontainer_host.py @@ -782,6 +782,7 @@ def test_setup_spack_environment_sources_spack_root_when_command_is_missing(tmp_ fixture.write_text(definitions) command_script = "\n".join( ( + "unset -f spack", 'source "$1"', '[[ -n "${SPACK_ROOT:-}" ]]', "if command -v spack >/dev/null 2>&1; then exit 99; fi",