소스 검색

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()