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
Commits
697387f5
Commit
697387f5
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
test remove_build_log and its contents
parent
6149434e
No related branches found
No related tags found
1 merge request
!82
Remove cmd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mpsd_software.py
+10
-0
10 additions, 0 deletions
tests/test_mpsd_software.py
with
10 additions
and
0 deletions
tests/test_mpsd_software.py
+
10
−
0
View file @
697387f5
...
...
@@ -789,6 +789,16 @@ def test_remove_package_sets(tmp_path, simple_toolchain):
shell
=
True
,
check
=
True
,
)
# check that the logs directory contains a build log for remove cmd
# dev-23a_zen3_2023-08-11T15-55-54_BUILD_toolchain2_remove.log
logs_dir
=
tmp_path
/
release_to_test
/
"
logs
"
# remove_build_log is the last log file in the list
remove_build_log
=
sorted
(
list
(
logs_dir
.
iterdir
()))[
-
1
]
assert
"
toolchain2_remove.log
"
in
remove_build_log
.
name
with
open
(
remove_build_log
,
"
r
"
)
as
f
:
logs
=
f
.
read
()
assert
"
==> Will not uninstall zlib@
"
in
logs
assert
"
==> Successfully removed environment
'
toolchain2
'"
in
logs
def
test_remove_global_package_sets
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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