Skip to content
Snippets Groups Projects
Commit dfa83ee6 authored by Adrian Ciu's avatar Adrian Ciu
Browse files

esd-spack-installation: added clean up after each test

parent 53ddcc41
No related branches found
No related tags found
2 merge requests!7Dedal Release,!5Methods for caching; CLI
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment