diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-16 13:43:06 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-16 13:43:06 +0000 |
commit | 5a8f88e1745a184039f07382c4b1c757011ca4be (patch) | |
tree | 6cfe2a3ab532a45a6372d86d877d8ab66cff331a /src/integration-tests/test_integration_clique.py.in | |
parent | 4997b98b69d53d14085f0da4d7d4b002f3d59100 (diff) | |
download | gnunet-5a8f88e1745a184039f07382c4b1c757011ca4be.tar.gz gnunet-5a8f88e1745a184039f07382c4b1c757011ca4be.zip |
Diffstat (limited to 'src/integration-tests/test_integration_clique.py.in')
-rwxr-xr-x | src/integration-tests/test_integration_clique.py.in | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/integration-tests/test_integration_clique.py.in b/src/integration-tests/test_integration_clique.py.in index 2c9a569f1..faf66a7d2 100755 --- a/src/integration-tests/test_integration_clique.py.in +++ b/src/integration-tests/test_integration_clique.py.in | |||
@@ -145,11 +145,12 @@ def check_connect (): | |||
145 | # Test execution | 145 | # Test execution |
146 | # | 146 | # |
147 | def run (): | 147 | def run (): |
148 | global test | 148 | global success |
149 | global server | 149 | global test |
150 | global client | 150 | global server |
151 | global success | 151 | global client |
152 | 152 | global client2 | |
153 | |||
153 | success = False | 154 | success = False |
154 | 155 | ||
155 | test = Test ('test_integration_disconnect', verbose) | 156 | test = Test ('test_integration_disconnect', verbose) |
@@ -172,12 +173,12 @@ def run (): | |||
172 | client2.stop () | 173 | client2.stop () |
173 | 174 | ||
174 | cleanup () | 175 | cleanup () |
175 | 176 | ||
176 | if (success == False): | 177 | if (success == False): |
177 | print ('Test failed') | 178 | print ('Test failed') |
178 | return False | 179 | return False |
179 | else: | 180 | else: |
180 | return True | 181 | return True |
181 | 182 | ||
182 | 183 | ||
183 | try: | 184 | try: |
@@ -188,6 +189,9 @@ except (KeyboardInterrupt, SystemExit): | |||
188 | client.stop () | 189 | client.stop () |
189 | client2.stop () | 190 | client2.stop () |
190 | cleanup () | 191 | cleanup () |
191 | sys.exit(success) | 192 | if (success == False): |
193 | sys.exit(1) | ||
194 | else: | ||
195 | sys.exit(0) | ||
192 | 196 | ||
193 | 197 | ||