Skip to content
Snippets Groups Projects

Dedal Release

Merged Adrian Ciu requested to merge dev into master
2 unresolved threads
1 file
+ 6
8
Compare changes
  • Side-by-side
  • Inline
@@ -8,13 +8,7 @@ from dedal.tests.testing_variables import test_spack_env_git, ebrains_spack_buil
from dedal.utils.utils import file_exists_and_not_empty
def test_spack_repo_exists_1():
spack_operation = SpackOperationCreator.get_spack_operator()
spack_operation.install_spack()
assert spack_operation.spack_repo_exists('ebrains-spack-builds') == False
def test_spack_repo_exists_2(tmp_path):
def test_spack_repo_exists_1(tmp_path):
install_dir = tmp_path
env = SpackDescriptor('ebrains-spack-builds', install_dir)
config = SpackConfig(env=env, install_dir=install_dir)
@@ -24,7 +18,7 @@ def test_spack_repo_exists_2(tmp_path):
spack_operation.spack_repo_exists(env.env_name)
def test_spack_repo_exists_3(tmp_path):
def test_spack_repo_exists_2(tmp_path):
install_dir = tmp_path
env = SpackDescriptor('ebrains-spack-builds', install_dir)
config = SpackConfig(env=env, install_dir=install_dir)
@@ -91,6 +85,8 @@ def test_spack_not_a_valid_repo():
spack_operation.add_spack_repo(repo.path, repo.env_name)
@pytest.mark.skip(
reason="Skipping the concretization step because it may freeze when numerous Spack packages are added to the environment.")
def test_spack_from_scratch_concretize_1(tmp_path):
install_dir = tmp_path
env = SpackDescriptor('ebrains-spack-builds', install_dir, ebrains_spack_builds_git)
@@ -107,6 +103,8 @@ def test_spack_from_scratch_concretize_1(tmp_path):
assert file_exists_and_not_empty(concretization_file_path) == True
@pytest.mark.skip(
reason="Skipping the concretization step because it may freeze when numerous Spack packages are added to the environment.")
def test_spack_from_scratch_concretize_2(tmp_path):
install_dir = tmp_path
env = SpackDescriptor('ebrains-spack-builds', install_dir, ebrains_spack_builds_git)