diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py index 8dbfe1f7055961359238717f61b7147e0f919928..a88b5bd5651d81fae9e466ed875e71bbb8f9b7fe 100755 --- a/mpsd-software-environment.py +++ b/mpsd-software-environment.py @@ -54,10 +54,10 @@ class os_chdir: 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 - about the call. + Conveniene function to call `subprocess.run(*args, **kwargs)` + and provide some metadata about the call. Parameters ---------- diff --git a/tests.py b/tests.py index 2ec9e88bbb40bcabe81f69d428f8ac083594506e..d2bf60c98c721bdc0f73fe5e81db5cddece835fa 100644 --- a/tests.py +++ b/tests.py @@ -65,6 +65,7 @@ def test_os_chdir(tmp_path): def test_prepare_environment(tmp_path): """Simulate running preparation of environment. + Simulate running ./install-software-environment.py --release dev-23a \ --target-directory /tmp/test_prepare_env prepare_env is run when cmd is not specified, we can test cmd='prepare'