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
0
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
dfa83ee6
Commit
dfa83ee6
authored
1 month ago
by
Adrian Ciu
Browse files
Options
Downloads
Patches
Plain Diff
esd-spack-installation: added clean up after each test
parent
53ddcc41
No related branches found
No related tags found
2 merge requests
!7
Dedal Release
,
!5
Methods for caching; CLI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dedal/tests/integration_tests/spack_install_test.py
+5
-5
5 additions, 5 deletions
dedal/tests/integration_tests/spack_install_test.py
with
5 additions
and
5 deletions
dedal/tests/integration_tests/spack_install_test.py
+
5
−
5
View file @
dfa83ee6
...
...
@@ -4,18 +4,18 @@ from esd.spack_manager.factory.SpackManagerBuildCache import SpackManagerBuildCa
from
esd.spack_manager.factory.SpackManagerScratch
import
SpackManagerScratch
SPACK_VERSION
=
"
0.22.0
"
# we need this test to run first so that spack is installed only once
@pytest.mark.run
(
order
=
1
)
def
test_spack_install_scratch
():
spack_manager
=
SpackManagerScratch
()
spack_manager
.
install_spack
(
spack_version
=
"
v0.21.1
"
)
spack_manager
.
install_spack
(
spack_version
=
f
'
v
{
SPACK_VERSION
}
'
)
installed_spack_version
=
spack_manager
.
get_spack_installed_version
()
required_version
=
"
0.21.1
"
assert
required_version
==
installed_spack_version
assert
SPACK_VERSION
==
installed_spack_version
def
test_spack_install_buildcache
():
spack_manager
=
SpackManagerBuildCache
()
installed_spack_version
=
spack_manager
.
get_spack_installed_version
()
required_version
=
"
0.21.1
"
assert
required_version
==
installed_spack_version
assert
SPACK_VERSION
==
installed_spack_version
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