Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Commits
66d4453c
Commit
66d4453c
authored
3 weeks ago
by
Adrian Ciu
Browse files
Options
Downloads
Patches
Plain Diff
esd-spack-installation: fixing tests
parent
2b1be114
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Dedal Release
,
!3
Draft: Esd spack installation
Pipeline
#59745
passed with stages
in 18 minutes and 39 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dedal/tests/integration_tests/spack_from_scratch_test.py
+6
-8
6 additions, 8 deletions
dedal/tests/integration_tests/spack_from_scratch_test.py
with
6 additions
and
8 deletions
dedal/tests/integration_tests/spack_from_scratch_test.py
+
6
−
8
View file @
66d4453c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment