434 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild)))) |
434 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild)))) |
435 self.__sendCommand('%s%s|%s|%s|%d\n' % \ |
435 self.__sendCommand('%s%s|%s|%s|%d\n' % \ |
436 (RequestLoad, wd, fn, str(Utilities.parseOptionString(argv)), |
436 (RequestLoad, wd, fn, str(Utilities.parseOptionString(argv)), |
437 traceInterpreter)) |
437 traceInterpreter)) |
438 |
438 |
439 def remoteRun(self, fn, argv, wd): |
439 def remoteRun(self, fn, argv, wd, autoFork = False, forkChild = False): |
440 """ |
440 """ |
441 Public method to load a new program to run. |
441 Public method to load a new program to run. |
442 |
442 |
443 @param fn the filename to run (string) |
443 @param fn the filename to run (string) |
444 @param argv the commandline arguments to pass to the program (string) |
444 @param argv the commandline arguments to pass to the program (string) |
445 @param wd the working directory for the program (string) |
445 @param wd the working directory for the program (string) |
|
446 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
|
447 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
446 """ |
448 """ |
447 wd = self.translate(wd, False) |
449 wd = self.translate(wd, False) |
448 fn = self.translate(os.path.abspath(fn), False) |
450 fn = self.translate(os.path.abspath(fn), False) |
|
451 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild)))) |
449 self.__sendCommand('%s%s|%s|%s\n' % \ |
452 self.__sendCommand('%s%s|%s|%s\n' % \ |
450 (RequestRun, wd, fn, str(Utilities.parseOptionString(argv)))) |
453 (RequestRun, wd, fn, str(Utilities.parseOptionString(argv)))) |
451 |
454 |
452 def remoteCoverage(self, fn, argv, wd, erase = False): |
455 def remoteCoverage(self, fn, argv, wd, erase = False): |
453 """ |
456 """ |