summaryrefslogtreecommitdiff
path: root/python/test/Ice/facets/Client.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice/facets/Client.py')
-rwxr-xr-xpython/test/Ice/facets/Client.py24
1 files changed, 8 insertions, 16 deletions
diff --git a/python/test/Ice/facets/Client.py b/python/test/Ice/facets/Client.py
index 6c87cd862c2..2a378682942 100755
--- a/python/test/Ice/facets/Client.py
+++ b/python/test/Ice/facets/Client.py
@@ -8,23 +8,15 @@
#
# **********************************************************************
-import os, sys, traceback
-
-import Ice
-
-Ice.loadSlice('Test.ice')
+from TestHelper import TestHelper
+TestHelper.loadSlice("Test.ice")
import AllTests
-def run(args, communicator):
- g = AllTests.allTests(communicator)
- g.shutdown()
- return True
-try:
- with Ice.initialize(sys.argv) as communicator:
- status = run(sys.argv, communicator)
-except:
- traceback.print_exc()
- status = False
+class Client(TestHelper):
+
+ def run(self, args):
-sys.exit(not status)
+ with self.initialize(args) as communicator:
+ g = AllTests.allTests(self, communicator)
+ g.shutdown()