From 686f2ae7fa8050d6113674ea5570ad956792e49a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 7 Sep 2017 13:55:13 -0400 Subject: [PATCH] script/build-integration-branch: check errors Signed-off-by: Sage Weil --- src/script/build-integration-branch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/script/build-integration-branch b/src/script/build-integration-branch index 3e13ffb323fc..416d38e8b86f 100755 --- a/src/script/build-integration-branch +++ b/src/script/build-integration-branch @@ -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) -- 2.47.3