def getCommand(self, options): ravenflag = '' if self.specs['test_interface_only'].lower() == 'true': ravenflag = 'interfaceCheck ' if RavenUtils.inPython3(): return "python3 " + self.driver + " " + ravenflag + self.specs["input"] else: return "python " + self.driver + " " + ravenflag + self.specs["input"]
def getCommand(self, options): """This method returns the command to execute for the test""" ravenflag = '' if self.specs['test_interface_only'].lower() == 'true': ravenflag = 'interfaceCheck ' if RavenUtils.inPython3(): return "python3 ../../../framework/Driver.py " + ravenflag + self.specs[ "input"] else: return "python ../../../framework/Driver.py " + ravenflag + self.specs[ "input"]
def getCommand(self, options): """ This method returns the command to execute for the test @ In, options, argparse.Namespace, functionally a dictionary of options from the input @ Out, getCommand, string, the command to run """ ravenflag = '' if self.specs['test_interface_only'].lower() == 'true': ravenflag = 'interfaceCheck ' if RavenUtils.inPython3(): return ' '.join(["python3", raven, ravenflag, self.specs["input"]]) else: return ' '.join(["python", raven, ravenflag, self.specs["input"]])