DebugClients/Python3/DebugClientBase.py

changeset 1499
b4d0457afb15
parent 1474
1eaec11a0078
child 1509
c0b5e693b0eb
--- a/DebugClients/Python3/DebugClientBase.py	Sat Dec 17 16:03:53 2011 +0100
+++ b/DebugClients/Python3/DebugClientBase.py	Sat Dec 17 19:13:19 2011 +0100
@@ -779,9 +779,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
@@ -791,8 +792,12 @@
                     import unittest
                     utModule = imp.load_source(tn, fn)
                     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)

eric ide

mercurial