def waitexec(self, argv, path=sys.executable): args = ' '.join([path] + list(argv)) argstr = shellsplit(from_utf8(args)) pipe = Popen(argstr, env=self.env) self.info(' {0}'.format(' '.join(argstr))) retcode = pipe.wait() if retcode < 0: self.note('* Child was terminated by signal {0}'.format(-retcode)) return -retcode elif retcode > 0: self.note('* Child terminated with errorcode {0}'.format(retcode)) return retcode
def waitexec(self, argv, path=sys.executable): args = ' '.join([path] + list(argv)) argstr = shellsplit(from_utf8(args)) pipe = Popen(argstr, env=self.env) self.info(' %s' % ' '.join(argstr)) retcode = pipe.wait() if retcode < 0: self.note('* Child was terminated by signal %s' % (-retcode, )) return -retcode elif retcode > 0: self.note('* Child terminated with failure code %s' % (retcode, )) return retcode
def waitexec(self, argv, path=sys.executable): args = " ".join([path] + list(argv)) argstr = shellsplit(from_utf8(args)) pipe = Popen(argstr, env=self.env) self.info(" %s" % " ".join(argstr)) retcode = pipe.wait() if retcode < 0: self.note("* Child was terminated by signal %s" % (-retcode, )) return -retcode elif retcode > 0: self.note("* Child terminated with failure code %s" % (retcode, )) return retcode
def test_split(self): self.assertEqual(shellsplit("the 'quick' brown fox"), ["the", "quick", "brown", "fox"])
def test_split(self): self.assertEqual(shellsplit("the 'quick' brown fox"), ['the', 'quick', 'brown', 'fox'])