diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/subprocess_context.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/subprocess_context.py b/lib/spack/spack/subprocess_context.py index b8e157740f..d9b23531ef 100644 --- a/lib/spack/spack/subprocess_context.py +++ b/lib/spack/spack/subprocess_context.py @@ -69,10 +69,12 @@ class PackageInstallContext(object): self.serialized_pkg = serialize(pkg) else: self.pkg = pkg + self.spack_working_dir = spack.main.spack_working_dir self.test_state = TestState() def restore(self): self.test_state.restore() + spack.main.spack_working_dir = self.spack_working_dir if _serialize: return pickle.load(self.serialized_pkg) else: |