Skip to content
Snippets Groups Projects
Commit a004dadd authored by Hans Fangohr's avatar Hans Fangohr Committed by Ashwin Kumar Karnad
Browse files

fix style

parent 5594bf31
No related branches found
No related tags found
3 merge requests!19Move linux-debian11 into main,!17split one test into three,!9force `subprocess.run` to check return code is 0
...@@ -98,12 +98,11 @@ def test_prepare_environment(tmp_path): ...@@ -98,12 +98,11 @@ def test_prepare_environment(tmp_path):
# check if the git branch is correctly checked out. We expect output such as # check if the git branch is correctly checked out. We expect output such as
# git_branch_stdout = '* dev-23a\n develop\n' # git_branch_stdout = '* dev-23a\n develop\n'
# The entry with the '* ' prefix is the active branch. # The entry with the '* ' prefix is the active branch.
git_branch_output_raw = \ git_branch_output_raw = subprocess.run(
subprocess.run( f"cd {str(release_base_dir/spack_environments)} && git branch",
f"cd {str(release_base_dir/spack_environments)} && git branch", shell=True,
shell=True, capture_output=True,
capture_output=True, )
)
git_branch_stdout = git_branch_output_raw.stdout.decode("utf-8") git_branch_stdout = git_branch_output_raw.stdout.decode("utf-8")
assert f"* {mpsd_release_to_test}" in git_branch_stdout assert f"* {mpsd_release_to_test}" in git_branch_stdout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment