def makeCommandLine(self, apps): appStr = ",".join((app.name for app in apps)) progName = os.path.basename(plugins.getTextTestProgram()) cmd = progName + " -a " + appStr version = apps[0].getFullVersion() if version: cmd += " -v " + version checkouts = set((app.checkout for app in apps)) if len(checkouts) == 1: checkout = checkouts.pop() if checkout: cmd += " -c " + checkout return cmd
def getSlaveCommand(self, test, submissionRules): cmdArgs = [ plugins.getTextTestProgram(), "-d", ":".join(self.optionMap.rootDirectories), "-a", test.app.name + test.app.versionSuffix(), "-l", "-tp", plugins.quote(test.getRelPath()) ] + \ self.getSlaveArgs(test) + self.getRunOptions(test.app, submissionRules) return " ".join(cmdArgs)
def getSlaveCommandArgs(self, test, submissionRules): interpreterArgs = [ self.getWindowsExecutable() ] if os.name == "nt" else [] return interpreterArgs + [ plugins.getTextTestProgram(), "-d", ":".join(self.optionMap.rootDirectories), "-a", test.app.name + test.app.versionSuffix(), "-l", "-tp", test.getRelPath() ] + \ self.getSlaveArgs(test) + self.getRunOptions(test.app, submissionRules)