Skip to content
Snippets Groups Projects
Commit ecce5757 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

make sure we have "res" defined

parent 05cd2a01
No related branches found
No related tags found
No related merge requests found
......@@ -468,4 +468,12 @@
# TODO make a "poulpe resolve-bin-env-spec"?
cmd = [setup_script.resolve(), "--get-unique-id"] + cli_args_list
# Get the actual unique bin-env ID that only the suite can resolve
# (because of its dependencies, etc.)
res = subprocess.run(
cmd,
cwd=tmp_target,
env=env, capture_output=True,
)
try:
......@@ -471,8 +479,4 @@
try:
# Get the actual unique bin-env ID that only the suite can resolve
# (because of its dependencies, etc.)
res = subprocess.run(
cmd, cwd=tmp_target, env=env, check=True, capture_output=True
)
res.check_returncode()
match = re.match("UNIQUE_ID: (.*)", res.stdout.decode())
unique_id = match.group(1)
......@@ -477,5 +481,7 @@
match = re.match("UNIQUE_ID: (.*)", res.stdout.decode())
unique_id = match.group(1)
except Exception:
raise
finally:
shutil.rmtree(tmp_target, ignore_errors=True)
......
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