Home
last modified time | relevance | path

Searched refs:popen (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/external/python/cpython3/Lib/test/
Dtest_popen.py24 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):
/external/python/cpython2/Lib/test/
Dtest_popen.py20 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)
/external/python/cpython3/Lib/test/libregrtest/
Druntest_mp.py143 popen = self._popen
144 if popen is not None:
151 popen = self._popen
152 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 = popen
211 stdout, stderr = popen.communicate(timeout=self.timeout)
212 retcode = popen.returncode
[all …]
/external/llvm-project/lldb/test/API/commands/process/attach/
DTestProcessAttach.py30 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)
/external/libchrome/build/
Dextract_from_cab.py16 popen = subprocess.Popen(args, stdout=subprocess.PIPE)
17 out, _ = popen.communicate()
18 if popen.returncode:
21 return popen.returncode
/external/scapy/scapy/arch/
Dunix.py36 with os.popen('%s -l' % conf.prog.ifconfig) as fdesc:
46 f=os.popen("netstat -rvn") # -f inet
48 f=os.popen("netstat -rnW") # -W to handle long interface names
50 f=os.popen("netstat -rn") # -f inet
154 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")
/external/python/cffi/testing/embedding/
Dtest_basic.py60 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()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcert-env33-c.c6 extern FILE *popen(const char *, const char *);
16 popen("test", "test"); in f()
/external/scapy/scapy/arch/bpf/
Dcore.py41 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)
/external/llvm-project/lldb/test/API/macosx/function-starts/
DTestFunctionStarts.py55 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…
/external/llvm-project/llvm/utils/
Dupdate_test_prefix.py11 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()
/external/autotest/client/cros/audio/
Dalsa_utils.py85 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)
/external/python/cpython2/Lib/
Dplatform.py450 def popen(cmd, mode='r', bufsize=None): function
456 popen = None
465 popen = win32pipe.popen
466 if popen is None:
468 popen = os.popen
473 popen('')
475 popen = _popen
477 popen = _popen
479 return popen(cmd,mode)
481 return popen(cmd,mode,bufsize)
[all …]
/external/autotest/client/site_tests/audio_CrasPinnedStream/
Daudio_CrasPinnedStream.py70 p = cmd_utils.popen(cras_utils.playback_cmd(raw_file.path))
72 loop_c = cmd_utils.popen(
75 int_c = cmd_utils.popen(
/external/llvm-project/lldb/test/API/commands/platform/process/list/
DTestProcessList.py28 popen = self.spawnSubprocess(exe, args=["arg1", "--arg2", "arg3"])
30 substrs = [str(popen.pid), "TestProcess arg1 --arg2 arg3"]
/external/opencensus-java/scripts/
Dcheck-git-history.py33 for line in os.popen(git_command):
47 with os.popen(command, 'r') as fd:
/external/python/cpython2/Demo/curses/
Drepeat.py33 p = os.popen(cmd, "r")
49 p = os.popen(cmd, "r")
/external/llvm-project/lldb/test/API/functionalities/deleted-executable/
DTestDeletedExecutable.py36 popen = self.spawnSubprocess(exe, [pid_file_path])
44 self.runCmd("process attach -p " + str(popen.pid))
/external/bcc/tests/python/
Dtest_percpu.py45 f = os.popen("hostname")
75 f = os.popen("hostname")
111 f = os.popen("hostname")
/external/zstd/tests/
Dtest-zstd-versions.py36 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
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports_linux.py19 def popen(argv): function
26 def popen(argv): function
84 desc = popen(['lsusb', '-v', '-s', '%s:%s' % (bus, dev)])
/external/llvm-project/lldb/packages/Python/lldbsuite/test/
Ddecorators.py712 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:
/external/llvm-project/lldb/test/API/functionalities/thread/create_after_attach/
DTestCreateAfterAttach.py36 popen = self.spawnSubprocess(exe)
37 pid = popen.pid
/external/llvm-project/lldb/test/API/macosx/find-dsym/deep-bundle/
DTestDeepBundle.py48 popen = self.spawnSubprocess(exe, [self.getBuildDir(), pid_file_path])
57 self.runCmd("process attach -p " + str(popen.pid))
/external/python/cpython2/Lib/distutils/
Dcygwinccompiler.py420 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')

12345678910>>...14