diff options
Diffstat (limited to 'python/test/Ice/defaultServant/Client.py')
-rwxr-xr-x | python/test/Ice/defaultServant/Client.py | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/python/test/Ice/defaultServant/Client.py b/python/test/Ice/defaultServant/Client.py index ad135d6ede6..25e142b7337 100755 --- a/python/test/Ice/defaultServant/Client.py +++ b/python/test/Ice/defaultServant/Client.py @@ -8,22 +8,13 @@ # # ********************************************************************** -import os, sys, traceback - -import Ice - -Ice.loadSlice('Test.ice') +from TestHelper import TestHelper +TestHelper.loadSlice("Test.ice") import AllTests -def run(args, communicator): - AllTests.allTests(communicator) - return True -try: - with Ice.initialize(sys.argv) as communicator: - status = run(sys.argv, communicator) -except: - traceback.print_exc() - status = False +class Client(TestHelper): -sys.exit(not status) + def run(self, args): + with self.initialize(args=args) as communicator: + AllTests.allTests(self, communicator) |