Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Merge requests
!82
Remove cmd
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove cmd
continue-with-remove-cmd
into
main
Overview
21
Commits
34
Pipelines
18
Changes
1
Merged
Ashwin Kumar Karnad
requested to merge
continue-with-remove-cmd
into
main
1 year ago
Overview
4
Commits
34
Pipelines
18
Changes
1
Expand
0
0
Merge request reports
Viewing commit
23c82bca
Prev
Next
Show latest version
1 file
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
23c82bca
explicitly test the environments installed before and after remove
· 23c82bca
Ashwin Kumar Karnad
authored
1 year ago
tests/test_mpsd_software.py
+
7
−
7
Options
@@ -759,9 +759,9 @@ def test_remove_package_sets(tmp_path, simple_toolchain):
release_dir
=
tmp_path
/
release_to_test
/
mod
.
get_native_microarchitecture
()
assert
len
(
list
(
release_dir
.
iterdir
()))
==
2
# spack and lmod
# check that the two toolchains are installed
assert
(
len
(
list
((
release_dir
/
"
spack
"
/
"
var
"
/
"
spack
"
/
"
environments
"
)
.
iterdir
()
))
==
2
environments_dir
=
release_dir
/
"
spack
"
/
"
var
"
/
"
spack
"
/
"
environments
"
set
([
environment
.
name
for
environment
in
environments
_dir
.
iterdir
()
])
==
set
(
[
"
toolchain1
"
,
"
toolchain2
"
]
)
# check that the two toolchains have the "handmade" module files
toolchains_list
=
list
(
mod
.
environment_status
(
release_to_test
,
tmp_path
).
values
())[
@@ -781,11 +781,11 @@ def test_remove_package_sets(tmp_path, simple_toolchain):
package_sets
=
[
"
toolchain2
"
],
force_remove
=
True
,
)
# now check that only toolchain1 is installed
assert
(
len
(
list
((
release_dir
/
"
spack
"
/
"
var
"
/
"
spack
"
/
"
environments
"
).
iterdir
()))
==
1
# now check that only "toolchain1" is installed in environments_dir
assert
set
([
environment
.
name
for
environment
in
environments_dir
.
iterdir
()])
==
set
(
[
"
toolchain1
"
]
)
# check that the only one toolchains has the "handmade" module files
toolchains_list
=
list
(
mod
.
environment_status
(
release_to_test
,
tmp_path
).
values
())[
0
Loading