diff --git a/manager/manager_cmds/distribution.py b/manager/manager_cmds/distribution.py index 818ec611..4fb9bff9 100644 --- a/manager/manager_cmds/distribution.py +++ b/manager/manager_cmds/distribution.py @@ -312,6 +312,7 @@ def configure_source_mirror(self): mirror_specs=filter_externals(self.environment_to_package.all_specs()), path=self.source_mirror, skip_unstable_versions=False, + workers=spack.config.determine_number_of_jobs(parallel=True), ) with self.env: @@ -320,6 +321,7 @@ def configure_source_mirror(self): mirror_specs=filter_externals(self.env.all_specs()), path=self.source_mirror, skip_unstable_versions=False, + workers=spack.config.determine_number_of_jobs(parallel=True), ) mirror_path = os.path.join( os.path.relpath(self.path, self.env.path), os.path.basename(self.source_mirror) diff --git a/tests/test_external.py b/tests/test_external.py index 58e00982..26481771 100644 --- a/tests/test_external.py +++ b/tests/test_external.py @@ -96,7 +96,7 @@ def setupExternalEnv(tmpdir, has_view=True): return env_path -def test_failsWithNoProject(tmpdir, capsys): +def test_failsWithNoProject(tmpdir): yaml_file = """spack: view: true specs: [mpileaks]""" @@ -110,7 +110,6 @@ def test_failsWithNoProject(tmpdir, capsys): with pytest.raises(SystemExit): with ev.Environment("test"): external(None, args) - assert "No project detected." in capsys.readouterr() def test_errorsIfThereIsNoView(tmpdir, on_moonlight):