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
71e9ea32
Commit
71e9ea32
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
test the presence of build_logs
parent
1a01f895
No related branches found
Branches containing commit
No related tags found
2 merge requests
!19
Move linux-debian11 into main
,
!1
Resolve "First draft for user interface for top level install command"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests.py
+15
-1
15 additions, 1 deletion
tests.py
with
15 additions
and
1 deletion
tests.py
+
15
−
1
View file @
71e9ea32
...
@@ -170,6 +170,20 @@ def test_install_environment(tmp_path):
...
@@ -170,6 +170,20 @@ def test_install_environment(tmp_path):
lines
=
f
.
read
()
lines
=
f
.
read
()
assert
'
zlib
'
in
lines
assert
'
zlib
'
in
lines
# test that the build log is created correctly
# check that a file with glob build_globale_generic_dev-23a*.log exists at release_base_dir/mpsd_microarch
build_log
=
list
((
release_base_dir
/
mpsd_microarch
).
glob
(
'
build_global_generic_dev-23a*.log
'
))
assert
len
(
build_log
)
>
0
# take the most recent build log
build_log
=
sorted
(
build_log
)[
0
]
# check that the build log contains statement ##### Installation finished
with
open
(
build_log
,
'
r
'
)
as
f
:
lines
=
f
.
read
()
assert
'
##### Installation finished
'
in
lines
def
test_interface
(
tmp_path
):
def
test_interface
(
tmp_path
):
pass
pass
...
@@ -177,4 +191,4 @@ def test_interface(tmp_path):
...
@@ -177,4 +191,4 @@ def test_interface(tmp_path):
# check that the script branch and hash are correct when running the script
# check that the script branch and hash are correct when running the script
# check that the help message is printed when no arguments are provided
# check that the help message is printed when no arguments are provided
# check that the help message is printed when -h is provided
# check that the help message is printed when -h is provided
# check that the error messages are also logged to the log file
\ No newline at end of file
\ No newline at end of file
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