--- a/DebugClients/Python/DebugClientBase.py Sat Dec 17 16:03:53 2011 +0100 +++ b/DebugClients/Python/DebugClientBase.py Sat Dec 17 19:13:19 2011 +0100 @@ -781,9 +781,10 @@ return if cmd == DebugProtocol.RequestUTPrepare: - fn, tn, tfn, cov, covname, erase = arg.split('|') + fn, tn, tfn, failed, cov, covname, erase = arg.split('|') sys.path.insert(0, os.path.dirname(os.path.abspath(fn))) os.chdir(sys.path[0]) + failed = eval(failed) # set the system exception handling function to ensure, that # we report on all unhandled exceptions @@ -793,8 +794,12 @@ import unittest utModule = __import__(tn) try: - self.test = unittest.defaultTestLoader\ - .loadTestsFromName(tfn, utModule) + if failed: + self.test = unittest.defaultTestLoader\ + .loadTestsFromNames(failed, utModule) + else: + self.test = unittest.defaultTestLoader\ + .loadTestsFromName(tfn, utModule) except AttributeError: self.test = unittest.defaultTestLoader\ .loadTestsFromModule(utModule)