Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 def test_split(self):
     self.assertEqual(shellsplit("the 'quick' brown fox"),
                      ["the", "quick", "brown", "fox"])
Exemplo n.º 5
0
 def test_split(self):
     self.assertEqual(shellsplit("the 'quick' brown fox"),
             ['the', 'quick', 'brown', 'fox'])
Exemplo n.º 6
0
 def test_split(self):
     self.assertEqual(shellsplit("the 'quick' brown fox"),
                      ['the', 'quick', 'brown', 'fox'])
Exemplo n.º 7
0
 def test_split(self):
     self.assertEqual(shellsplit("the 'quick' brown fox"), ["the", "quick", "brown", "fox"])