Searched refs:popen (Results 1 – 25 of 350) sorted by relevance
12345678910>>...14
24 with os.popen(cmd) as p:30 self.assertRaises(TypeError, os.popen)46 self.assertEqual(os.popen("exit 0").close(), None)47 status = os.popen("exit 42").close()54 with os.popen("echo hello") as f:58 with os.popen("echo hello") as f:62 with os.popen(cmd="exit 0", mode="w", buffering=-1):
20 data = os.popen(cmd).read() + '\n'25 self.assertRaises(TypeError, os.popen)41 self.assertEqual(os.popen("exit 0").close(), None)43 self.assertEqual(os.popen("exit 42").close(), 42)45 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
143 popen = self._popen144 if popen is not None:151 popen = self._popen152 if popen is None:167 os.killpg(popen.pid, signal.SIGKILL)169 popen.kill()194 popen = run_test_in_subprocess(test_name, self.ns)197 self._popen = popen211 stdout, stderr = popen.communicate(timeout=self.timeout)212 retcode = popen.returncode[all …]
30 popen = self.spawnSubprocess(exe)32 self.runCmd("process attach -p " + str(popen.pid))54 popen = self.spawnSubprocess(exe)58 self.runCmd("process attach -p " + str(popen.pid))71 popen = self.spawnSubprocess(exe)
16 popen = subprocess.Popen(args, stdout=subprocess.PIPE)17 out, _ = popen.communicate()18 if popen.returncode:21 return popen.returncode
36 with os.popen('%s -l' % conf.prog.ifconfig) as fdesc:46 f=os.popen("netstat -rvn") # -f inet48 f=os.popen("netstat -rnW") # -W to handle long interface names50 f=os.popen("netstat -rn") # -f inet154 f = os.popen("%s %s" % (conf.prog.ifconfig, ifname))194 f = os.popen("%s" % conf.prog.ifconfig)208 f = os.popen("%s -l" % conf.prog.ifconfig)226 fd_netstat = os.popen("netstat -rn -f inet6")
60 popen = self._run_base(args, cwd=self.get_path(),63 output = popen.stdout.read()64 err = popen.wait()169 popen = self._run_base([executable_name], cwd=path,172 result = popen.stdout.read()173 err = popen.wait()
6 extern FILE *popen(const char *, const char *);16 popen("test", "test"); in f()
41 fd = os.popen("%s %s" % (conf.prog.ifconfig, ifname))68 fd = os.popen("%s %s" % (conf.prog.ifconfig, ifname))107 f = os.popen(command)130 fd = os.popen("%s -a" % conf.prog.ifconfig)
55 popen = self.spawnSubprocess(exe, [pid_file_path])67 attach_info.SetProcessID(popen.pid)70 …self.assertTrue(error.Success(), "Didn't attach successfully to %d: %s"%(popen.pid, error.GetCStri…
11 s = os.popen('llvm-lit -a ' + i).read()33 s = os.popen('llvm/' + t.group(1) + ' ' + i + ' 2>&1').read()36 s = os.popen('git diff ' + i).read()
85 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)120 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)182 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)232 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)248 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)356 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
450 def popen(cmd, mode='r', bufsize=None): function456 popen = None465 popen = win32pipe.popen466 if popen is None:468 popen = os.popen473 popen('')475 popen = _popen477 popen = _popen479 return popen(cmd,mode)481 return popen(cmd,mode,bufsize)[all …]
70 p = cmd_utils.popen(cras_utils.playback_cmd(raw_file.path))72 loop_c = cmd_utils.popen(75 int_c = cmd_utils.popen(
28 popen = self.spawnSubprocess(exe, args=["arg1", "--arg2", "arg3"])30 substrs = [str(popen.pid), "TestProcess arg1 --arg2 arg3"]
33 for line in os.popen(git_command):47 with os.popen(command, 'r') as fd:
33 p = os.popen(cmd, "r")49 p = os.popen(cmd, "r")
36 popen = self.spawnSubprocess(exe, [pid_file_path])44 self.runCmd("process attach -p " + str(popen.pid))
45 f = os.popen("hostname")75 f = os.popen("hostname")111 f = os.popen("hostname")
36 popen = Popen(command, stdout=PIPE, stderr=PIPE, shell=param_shell)37 stdout_lines, stderr_lines = popen.communicate()43 if popen.returncode is not None and popen.returncode != 0:46 return popen.returncode
19 def popen(argv): function26 def popen(argv): function84 desc = popen(['lsusb', '-v', '-s', '%s:%s' % (bus, dev)])
712 if os.popen(cmd).close() is not None:742 if os.popen(cmd).close() is not None:745 if os.popen(cmd).close() is not None:767 if os.popen(cmd).close() is not None:772 with os.popen(cmd) as nm_output:779 with os.popen(cmd) as cc_output:788 with os.popen(cmd) as nm_output:821 if os.popen(cmd).close() is not None:824 if os.popen(cmd).close() is not None:
36 popen = self.spawnSubprocess(exe)37 pid = popen.pid
48 popen = self.spawnSubprocess(exe, [self.getBuildDir(), pid_file_path])57 self.runCmd("process attach -p " + str(popen.pid))
420 out = os.popen(gcc_exe + ' -dumpversion','r')432 out = os.popen(ld_exe + ' -v','r')444 out = os.popen(dllwrap_exe + ' --version','r')458 out = os.popen('gcc -dumpmachine', 'r')