summaryrefslogtreecommitdiff
path: root/python/test/Ice/custom/Client.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice/custom/Client.py')
-rwxr-xr-xpython/test/Ice/custom/Client.py24
1 files changed, 8 insertions, 16 deletions
diff --git a/python/test/Ice/custom/Client.py b/python/test/Ice/custom/Client.py
index 192999fae08..31a9ff8479d 100755
--- a/python/test/Ice/custom/Client.py
+++ b/python/test/Ice/custom/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):
- custom = AllTests.allTests(communicator)
- custom.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:
+ custom = AllTests.allTests(self, communicator)
+ custom.shutdown()