aboutsummaryrefslogtreecommitdiff
path: root/networks/hs_instance_start.py
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-04-13 13:24:17 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-04-13 13:24:17 +0100
commit43024c6735391e3030bfbb0f170b59d00b788728 (patch)
treeaa1bf4ef4606833dd20aa8d2718c3d1005a68a61 /networks/hs_instance_start.py
parent43ad6bc0f94a048cfffe4ec3d22e78e75d4d6795 (diff)
downloadchutney-43024c6735391e3030bfbb0f170b59d00b788728.tar
chutney-43024c6735391e3030bfbb0f170b59d00b788728.tar.gz
Lots of better test stuff
Diffstat (limited to 'networks/hs_instance_start.py')
-rw-r--r--networks/hs_instance_start.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/networks/hs_instance_start.py b/networks/hs_instance_start.py
index 38282de..19cb3ad 100644
--- a/networks/hs_instance_start.py
+++ b/networks/hs_instance_start.py
@@ -4,6 +4,8 @@ from chutney.TorNet import *
from stem.control import EventType
def hs_instance_start(network):
+ result = True
+
hs_nodes = network.get("h")
clients = network.get("c")
@@ -57,6 +59,9 @@ def hs_instance_start(network):
for c_group in range(i + 1):
logging.info("Testing with the %d client group" % c_group)
- connection_test(client_groups[c_group], i + 1)
+ expected_nodes = min(c_group, i)
+ result &= connection_test(client_groups[c_group], expected_nodes)
+
+ result &= check_same_intro_points()
- check_same_intro_points()
+ return result