>From 703dc9cb76dcbd7a1685aef39b12b07d9fa3dcdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 9 Mar 2016 11:03:08 +0100 Subject: [PATCH] Fix return value of python HTTP tests * testenv/test/http_test.py: Return value from HTTP.begin() method --- testenv/test/http_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testenv/test/http_test.py b/testenv/test/http_test.py index 5a13d4f..50398dd 100644 --- a/testenv/test/http_test.py +++ b/testenv/test/http_test.py @@ -39,12 +39,13 @@ class HTTPTest(BaseTest): # If any exception occurs, self.__exit__ will be immediately called. # We must call the parent method in the end in order to verify # whether the tests succeeded or not. + self.tests_passed = False if self.ready: self.do_test() + self.tests_passed = True print_green("Test Passed.") - else: - self.tests_passed = False - super(HTTPTest, self).begin() + + return 0 if self.tests_passed else 100 def instantiate_server_by(self, protocol): server = {HTTP: HTTPd, -- 2.7.0