Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 830316 - Print failures at the end of manage_masters.py - always.…
Browse files Browse the repository at this point in the history
… r=bhearsum

--HG--
extra : rebase_source : 8d910c887c9dbe1936592ec8669680f87a86a64b
  • Loading branch information
Callek committed Jan 15, 2013
1 parent 906d18a commit 6dbf11c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions buildfarm/maintenance/manage_masters.py
Expand Up @@ -12,9 +12,10 @@
import util.fabric.actions

def print_status(remaining, failed_masters):
print "=" * 30, "Remaining masters", "=" * 30
for m in remaining:
print m
if remaining:
print "=" * 30, "Remaining masters", "=" * 30
for m in remaining:
print m
if failed_masters:
print "=" * 30, "failed masters", "=" * 30
for m in failed_masters:
Expand Down Expand Up @@ -158,5 +159,8 @@ def run_action_on_master(action, master):
time.sleep(1)

p.join()
# One final print before we exit, to be sure that results are not missed
print_status([m['name'] for (m, r) in results],
failed_masters)
if failed:
sys.exit(1)

0 comments on commit 6dbf11c

Please sign in to comment.