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
38fa0d2c
Commit
38fa0d2c
authored
1 year ago
by
Hans Fangohr
Browse files
Options
Downloads
Patches
Plain Diff
fix pydoc style after manual merge
parent
5a582e36
No related branches found
No related tags found
2 merge requests
!19
Move linux-debian11 into main
,
!9
force `subprocess.run` to check return code is 0
Pipeline
#368560
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mpsd-software-environment.py
+3
-3
3 additions, 3 deletions
mpsd-software-environment.py
tests.py
+1
-0
1 addition, 0 deletions
tests.py
with
4 additions
and
3 deletions
mpsd-software-environment.py
+
3
−
3
View file @
38fa0d2c
...
@@ -54,10 +54,10 @@ class os_chdir:
...
@@ -54,10 +54,10 @@ class os_chdir:
def
run
(
*
args
,
counter
=
[
0
],
**
kwargs
):
def
run
(
*
args
,
counter
=
[
0
],
**
kwargs
):
"""
"""
Call subprocess.run
(*args, **kwargs)
and print logging data.
Call subprocess.run and print logging data.
Conveniene function to call `subprocess.run
` and provide some metadata
Conveniene function to call `subprocess.run
(*args, **kwargs)`
about the call.
and provide some metadata
about the call.
Parameters
Parameters
----------
----------
...
...
This diff is collapsed.
Click to expand it.
tests.py
+
1
−
0
View file @
38fa0d2c
...
@@ -65,6 +65,7 @@ def test_os_chdir(tmp_path):
...
@@ -65,6 +65,7 @@ def test_os_chdir(tmp_path):
def
test_prepare_environment
(
tmp_path
):
def
test_prepare_environment
(
tmp_path
):
"""
Simulate running preparation of environment.
"""
Simulate running preparation of environment.
Simulate running ./install-software-environment.py --release dev-23a
\
Simulate running ./install-software-environment.py --release dev-23a
\
--target-directory /tmp/test_prepare_env
--target-directory /tmp/test_prepare_env
prepare_env is run when cmd is not specified, we can test cmd=
'
prepare
'
prepare_env is run when cmd is not specified, we can test cmd=
'
prepare
'
...
...
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