Example #1
0
    def get_cmdline(self, cmd, env):

        output = subprocess.check_output(cmd, env=env).rstrip()
        if is_windows:
            return subprocess._cmdline2list(output)
        else:
            return shlex.split(output)
    def get_cmdline(self, cmd, env):

        output = subprocess.check_output(cmd, env=env).rstrip()
        if is_windows:
            return subprocess._cmdline2list(output)
        else:
            return shlex.split(output)
 def test_cmdline2list(self):
     for cmdline, argv in self.cmdlines.iteritems():
         self.assertEqual(_cmdline2list(cmdline), argv)
Example #4
0
 def test_cmdline2list(self):
     for cmdline, argv in self.cmdlines.iteritems():
         self.assertEqual(_cmdline2list(cmdline), argv)