Browse Source

Make 'chutney status' indicate result in exit code.

Linus Nordberg 11 years ago
parent
commit
562b8f19cf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/chutney/TorNet.py

+ 3 - 0
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()