Debugger/DebuggerInterfacePython.py

changeset 1499
b4d0457afb15
parent 1179
7661ab683f7b
child 1509
c0b5e693b0eb
--- a/Debugger/DebuggerInterfacePython.py	Sat Dec 17 16:03:53 2011 +0100
+++ b/Debugger/DebuggerInterfacePython.py	Sat Dec 17 19:13:19 2011 +0100
@@ -707,23 +707,26 @@
         """
         self.__sendCommand("{0}{1}\n".format(DebugProtocol.RequestCompletion, text))
         
-    def remoteUTPrepare(self, fn, tn, tfn, cov, covname, coverase):
+    def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase):
         """
         Public method to prepare a new unittest run.
         
         @param fn the filename to load (string)
         @param tn the testname to load (string)
         @param tfn the test function name to load tests from (string)
-        @param cov flag indicating collection of coverage data is requested
+        @param failed list of failed test, if only failed test should be run
+                (list of strings)
+        @param cov flag indicating collection of coverage data is requested (boolean)
         @param covname filename to be used to assemble the coverage caches
-                filename
-        @param coverase flag indicating erasure of coverage data is requested
+                filename (string)
+        @param coverase flag indicating erasure of coverage data is requested (boolean)
         """
         self.__scriptName = os.path.abspath(fn)
         
         fn = self.translate(os.path.abspath(fn), False)
-        self.__sendCommand('{0}{1}|{2}|{3}|{4:d}|{5}|{6:d}\n'.format(
-            DebugProtocol.RequestUTPrepare, fn, tn, tfn, cov, covname, coverase))
+        self.__sendCommand('{0}{1}|{2}|{3}|{4}|{5:d}|{6}|{7:d}\n'.format(
+            DebugProtocol.RequestUTPrepare, fn, tn, tfn, str(failed),
+            cov, covname, coverase))
         
     def remoteUTRun(self):
         """
@@ -946,28 +949,28 @@
                     continue
                 
                 if resp == DebugProtocol.ResponseUTTestFailed:
-                    testname, traceback = eval(evalArg)
-                    self.debugServer.clientUtTestFailed(testname, traceback)
+                    testname, traceback, id = eval(evalArg)
+                    self.debugServer.clientUtTestFailed(testname, traceback, id)
                     continue
                 
                 if resp == DebugProtocol.ResponseUTTestErrored:
-                    testname, traceback = eval(evalArg)
-                    self.debugServer.clientUtTestErrored(testname, traceback)
+                    testname, traceback, id = eval(evalArg)
+                    self.debugServer.clientUtTestErrored(testname, traceback, id)
                     continue
                 
                 if resp == DebugProtocol.ResponseUTTestSkipped:
-                    testname, reason = eval(line[eoc:-1])
-                    self.debugServer.clientUtTestSkipped(testname, reason)
+                    testname, reason, id = eval(line[eoc:-1])
+                    self.debugServer.clientUtTestSkipped(testname, reason, id)
                     continue
                 
                 if resp == DebugProtocol.ResponseUTTestFailedExpected:
-                    testname, traceback = eval(line[eoc:-1])
-                    self.debugServer.clientUtTestFailedExpected(testname, traceback)
+                    testname, traceback, id = eval(line[eoc:-1])
+                    self.debugServer.clientUtTestFailedExpected(testname, traceback, id)
                     continue
                 
                 if resp == DebugProtocol.ResponseUTTestSucceededUnexpected:
-                    testname = line[eoc:-1]
-                    self.debugServer.clientUtTestSucceededUnexpected(testname)
+                    testname, id = eval(line[eoc:-1])
+                    self.debugServer.clientUtTestSucceededUnexpected(testname, id)
                     continue
                 
                 if resp == DebugProtocol.ResponseUTFinished:

eric ide

mercurial