浏览代码

Make 'chutney status' indicate result in exit code.

Linus Nordberg 11 年之前
父节点
当前提交
562b8f19cf
共有 1 个文件被更改,包括 3 次插入0 次删除
  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()