Commit 872b6010 authored by canterburym's avatar canterburym
Browse files

Making merge test less verbose

parent a19c047b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,5 +3,5 @@

FROM python:3.8
RUN apt update && apt-get install -y git

RUN git config --global user.name "forgeRobot" && git config --global user.email "forgeRobot@example.com"
RUN pip3 install -q asn1tools lxml xmlschema requests gitpython
 No newline at end of file
+5 −4
Original line number Diff line number Diff line
@@ -16,11 +16,11 @@ def gapi (query):
    return json.loads(r.text)

def do (commandline):
    print ("   Attempting: " + commandline)
    #print ("   Attempting: " + commandline)
    completedProc = subprocess.run(commandline, capture_output=True, shell=True)
    print ("   STDOUT > " + ("empty" if completedProc.stdout is None else completedProc.stdout.decode('utf-8')))
    print ("   STDERR > " + ("empty" if completedProc.stderr is None else completedProc.stderr.decode('utf-8')))
    print (f"   Completed with code {completedProc.returncode}")
    #print ("   STDOUT > " + ("empty" if completedProc.stdout is None else completedProc.stdout.decode('utf-8')))
    #print ("   STDERR > " + ("empty" if completedProc.stderr is None else completedProc.stderr.decode('utf-8')))
    #print (f"   Completed with code {completedProc.returncode}")
    return (completedProc.returncode == 0,  completedProc.stdout.decode('utf-8'))

print ("Searching for corresponding MR...")
@@ -45,6 +45,7 @@ mrs = [m for m in mrs if m['reference'] != mr['reference']]
print (f"{len(mrs)} MRs found")

mergeConflicts = {}

for mr in mrs:
    source_branch = mr['source_branch']
    print (source_branch)