]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/build-integration-branch: check errors
authorSage Weil <sage@redhat.com>
Thu, 7 Sep 2017 17:55:13 +0000 (13:55 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 9 May 2018 19:25:04 +0000 (21:25 +0200)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 686f2ae7fa8050d6113674ea5570ad956792e49a)

src/script/build-integration-branch

index 3e13ffb323fc28383c2758b3bc2ea7a38e2e6b56..416d38e8b86f2b1b4a04cdd74a4a25ee8ad1f880 100755 (executable)
@@ -42,17 +42,18 @@ print "branch %s" % branch
 
 # assemble
 print('--- creating branch %s' % branch)
-call(['git', 'branch', '-D', branch])
-call(['git', 'checkout', '-b', branch])
+r = call(['git', 'checkout', '-b', branch])
+assert not r
 for pr in prs:
     print('--- pr %d --- pulling %s branch %s' % (
         pr['number'],
         pr['head']['repo']['clone_url'],
         pr['head']['ref']))
-    call(['git', 'pull', '--no-edit',
+    r = call(['git', 'pull', '--no-edit',
           pr['head']['repo']['clone_url'],
           pr['head']['ref']
     ])
+    assert not r
 print('--- done. these PRs were included:')
 print('\n'.join(prtext))
 print('--- perhaps you want to: make && ctest -j12 && git push ci %s' % branch)