Skip to content
Snippets Groups Projects
Unverified Commit 9821aa6f authored by Daniele Debernardi's avatar Daniele Debernardi Committed by Oliver Smith
Browse files

CI: return output of common.run_pmbootstrap (MR 1132)

(cherry picked from commit 233ec0d2)
parent 275f8694
No related branches found
No related tags found
No related merge requests found
......@@ -44,14 +44,14 @@ def commit_message_has_string(needle):
return needle in run_git(["show", "-s", "--format=full", "HEAD"])
def run_pmbootstrap(parameters):
def run_pmbootstrap(parameters, output_return=False):
""" Run pmbootstrap with the pmaports dir as --aports """
cmd = ["pmbootstrap", "--aports", get_pmaports_dir()] + parameters
process = subprocess.Popen(cmd)
process.communicate()
if process.returncode != 0:
print("** Test failed")
exit(1)
stdout = subprocess.PIPE if output_return else None
result = subprocess.run(cmd, stdout=stdout, universal_newlines=True)
result.check_returncode()
if output_return:
return result.stdout
def get_upstream_branch():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment