Skip to content
Snippets Groups Projects
Commit a21cc385 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

fix subprocess miss handling the pipe operator

parent 9d7418c1
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!1Resolve "First draft for user interface for top level install command"
......@@ -253,7 +253,8 @@ def install_environment(
.replace("_mpsd_spack_ver_", f"_{mpsd_release}_")
)
subprocess.run(
["bash", spack_setup_script, *install_flags, toolchain, f" | tee -a {install_log_file} 2>&1"],
f"bash {spack_setup_script} {' '.join(install_flags)} {toolchain} | tee -a {install_log_file} 2>&1",
shell=True,
)
......
......@@ -170,3 +170,11 @@ def test_install_environment(tmp_path):
lines = f.read()
assert 'zlib' in lines
def test_interface(tmp_path):
pass
# ensure that installing without toolchains only passes the available toolchains
# 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 -h is provided
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment