From dcb78105ad800e226e6355360c7adc0b30cfaf50 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Fri, 27 Dec 2013 01:41:59 +0530 Subject: [PATCH 3/6] Correct the call to stop_HTTP_Server --- testenv/ChangeLog | 4 ++++ testenv/WgetTest.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testenv/ChangeLog b/testenv/ChangeLog index 6b58f18..3f82ae8 100644 --- a/testenv/ChangeLog +++ b/testenv/ChangeLog @@ -1,3 +1,7 @@ +2013-12-26 Darshit Shah + + * WgetTest.py (HTTPTest.call_test): Correct the call to stop_HTTP_Server. + 2013-12-25 Darshit Shah * WgetTest.py (CommonMehtods.exec_wget): Catch and handle exception if the diff --git a/testenv/WgetTest.py b/testenv/WgetTest.py index 09c1d85..cec756b 100644 --- a/testenv/WgetTest.py +++ b/testenv/WgetTest.py @@ -261,7 +261,7 @@ class HTTPTest (CommonMethods): try: assert hasattr (self, pre_hook_func) except AssertionError as ae: - self.stop_HTTP_Server (self.server) + self.stop_HTTP_Server () raise TestFailed ("Pre Test Function " + pre_hook_func + " not defined.") getattr (self, pre_hook_func) (pre_hook[pre_hook_func]) @@ -270,7 +270,7 @@ class HTTPTest (CommonMethods): try: assert hasattr (self, test_func) except AssertionError as ae: - self.stop_HTTP_Server (self.server) + self.stop_HTTP_Server () raise TestFailed ("Test Option " + test_func + " unknown.") getattr (self, test_func) (test_params[test_func]) -- 1.8.5.2