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