Correct the call to stop_HTTP_Server

This commit is contained in:
Darshit Shah 2013-12-27 01:41:59 +05:30 committed by Giuseppe Scrivano
parent f616192dfd
commit 7e1f4c1abc
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2013-12-26 Darshit Shah <darnir@gmail.com>
* WgetTest.py (HTTPTest.call_test): Correct the call to stop_HTTP_Server.
2013-12-25 Darshit Shah <darnir@gmail.com> 2013-12-25 Darshit Shah <darnir@gmail.com>
* WgetTest.py (CommonMehtods.exec_wget): Catch and handle exception if the * WgetTest.py (CommonMehtods.exec_wget): Catch and handle exception if the

View File

@ -261,7 +261,7 @@ class HTTPTest (CommonMethods):
try: try:
assert hasattr (self, pre_hook_func) assert hasattr (self, pre_hook_func)
except AssertionError as ae: except AssertionError as ae:
self.stop_HTTP_Server (self.server) self.stop_HTTP_Server ()
raise TestFailed ("Pre Test Function " + pre_hook_func + " not defined.") raise TestFailed ("Pre Test Function " + pre_hook_func + " not defined.")
getattr (self, pre_hook_func) (pre_hook[pre_hook_func]) getattr (self, pre_hook_func) (pre_hook[pre_hook_func])
@ -270,7 +270,7 @@ class HTTPTest (CommonMethods):
try: try:
assert hasattr (self, test_func) assert hasattr (self, test_func)
except AssertionError as ae: except AssertionError as ae:
self.stop_HTTP_Server (self.server) self.stop_HTTP_Server ()
raise TestFailed ("Test Option " + test_func + " unknown.") raise TestFailed ("Test Option " + test_func + " unknown.")
getattr (self, test_func) (test_params[test_func]) getattr (self, test_func) (test_params[test_func])