You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/06/12 05:58:08 UTC
git commit: Updated verify-reviews to catch exceptions during cleanup.
Repository: mesos
Updated Branches:
refs/heads/master 59be26641 -> bdd0f55e0
Updated verify-reviews to catch exceptions during cleanup.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bdd0f55e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bdd0f55e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bdd0f55e
Branch: refs/heads/master
Commit: bdd0f55e03c1a464b0f6dc12ddfcd642a12bd091
Parents: 59be266
Author: Vinod Kone <vi...@twitter.com>
Authored: Wed Jun 11 20:57:49 2014 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Wed Jun 11 20:58:04 2014 -0700
----------------------------------------------------------------------
support/verify-reviews.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/bdd0f55e/support/verify-reviews.py
----------------------------------------------------------------------
diff --git a/support/verify-reviews.py b/support/verify-reviews.py
index a84f9ce..c21c8d8 100755
--- a/support/verify-reviews.py
+++ b/support/verify-reviews.py
@@ -94,8 +94,11 @@ def post_review(review_request, message):
@atexit.register
def cleanup():
- shell("git clean -fd")
- shell("git reset --hard HEAD")
+ try:
+ shell("git clean -fd")
+ shell("git reset --hard HEAD")
+ except subprocess.CalledProcessError as e:
+ print "Failed command: %s\n\nError: %s" % (e.cmd, e.output)
def verify_review(review_request):