From 7972f07a3aa244dcde673b7cb5541e70da9193bb Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 6 Aug 2018 11:56:42 +0200 Subject: Python test suite updates --- python/test/Ice/binding/Client.py | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'python/test/Ice/binding/Client.py') diff --git a/python/test/Ice/binding/Client.py b/python/test/Ice/binding/Client.py index ad135d6ede6..74b7105bf20 100755 --- a/python/test/Ice/binding/Client.py +++ b/python/test/Ice/binding/Client.py @@ -8,22 +8,14 @@ # # ********************************************************************** -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): + + def run(self, args): -sys.exit(not status) + with self.initialize(args) as communicator: + AllTests.allTests(self, communicator) -- cgit v1.2.3