aboutsummaryrefslogtreecommitdiff
path: root/lib/chutney/TorNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chutney/TorNet.py')
-rw-r--r--lib/chutney/TorNet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index dcaf7d8..33eb05c 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -589,6 +589,9 @@ class Network(object):
statuses = [ n.getController().check() for n in self._nodes]
n_ok = len([x for x in statuses if x])
print "%d/%d nodes are running"%(n_ok,len(self._nodes))
+ if n_ok != len(self._nodes):
+ return False
+ return True
def restart(self):
self.stop()