Home
last modified time | relevance | path

Searched refs:popen (Results 1 - 25 of 97) sorted by relevance

1234

/third_party/python/Lib/test/
H A Dtest_popen.py1 """Basic tests for os.popen()
3 Particularly useful for platforms that fake popen.
10 if not hasattr(os, 'popen'):
11 raise unittest.SkipTest("need os.popen()")
28 with os.popen(cmd) as p:
34 self.assertRaises(TypeError, os.popen)
50 self.assertEqual(os.popen("exit 0").close(), None)
51 status = os.popen("exit 42").close()
58 with os.popen("echo hello") as f:
62 with os.popen("ech
[all...]
H A Dtest_site.py494 popen = subprocess.Popen([sys.executable, '-X', 'utf8', '-I',
499 stdout = popen.communicate()[0]
500 self.assertEqual(popen.returncode, 0, repr(stdout))
513 popen = subprocess.Popen([sys.executable, '-X', 'utf8', '-I', '-v',
519 stdout, stderr = popen.communicate()
520 self.assertEqual(popen.returncode, 0, (stdout, stderr))
/third_party/node/tools/gyp/pylib/gyp/
H A Dwin_tool.py253 popen = subprocess.Popen(
256 out = popen.communicate()[0].decode("utf-8")
260 return popen.returncode
297 popen = subprocess.Popen(
300 out = popen.communicate()[0].decode("utf-8")
311 return popen.returncode
316 popen = subprocess.Popen(
319 out = popen.communicate()[0].decode("utf-8")
328 return popen.returncode
334 popen
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dwin_tool.py252 popen = subprocess.Popen(
255 out = popen.communicate()[0].decode("utf-8")
259 return popen.returncode
296 popen = subprocess.Popen(
299 out = popen.communicate()[0].decode("utf-8")
310 return popen.returncode
315 popen = subprocess.Popen(
318 out = popen.communicate()[0].decode("utf-8")
327 return popen.returncode
333 popen
[all...]
/third_party/python/Lib/test/libregrtest/
H A Druntest_mp.py161 popen = self._popen
162 if popen is not None:
169 popen = self._popen
170 if popen is None:
185 os.killpg(popen.pid, signal.SIGKILL)
187 popen.kill()
189 # popen.kill(): the process completed, the TestWorkerProcess thread
215 popen = run_test_in_subprocess(test_name, self.ns, stdout_fh)
218 self._popen = popen
233 retcode = popen
[all...]
/third_party/FreeBSD/sys/dev/usb/
H A Dusb_generic.c1325 struct usb_fs_open *popen; in ugen_ioctl() member
1420 u.popen = &open.fs_open; in ugen_ioctl()
1421 if (u.popen->ep_index >= f->fs_ep_max) { in ugen_ioctl()
1425 if (f->fs_xfer[u.popen->ep_index] != NULL) { in ugen_ioctl()
1429 if (u.popen->max_bufsize > USB_FS_MAX_BUFSIZE) { in ugen_ioctl()
1430 u.popen->max_bufsize = USB_FS_MAX_BUFSIZE; in ugen_ioctl()
1432 if (u.popen->max_frames & USB_FS_MAX_FRAMES_PRE_SCALE) { in ugen_ioctl()
1434 u.popen->max_frames &= ~USB_FS_MAX_FRAMES_PRE_SCALE; in ugen_ioctl()
1438 if (u.popen->max_frames > USB_FS_MAX_FRAMES) { in ugen_ioctl()
1439 u.popen in ugen_ioctl()
[all...]
/third_party/musl/libc-test/src/functional/
H A Dpopen.c32 TEST_E(f = popen("echo hello", "r")); in main()
41 TEST_E(f = popen(cmd, "w")); in main()
/third_party/skia/buildtools/checkdeps/
H A Dbuilddeps.py61 popen = subprocess.Popen(git_ls_files_cmd,
66 for line in popen.stdout.read().decode('utf-8').splitlines():
75 popen.stdout.close()
77 popen.wait()
/third_party/python/Lib/distutils/
H A Dmsvc9compiler.py262 popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
266 stdout, stderr = popen.communicate()
267 if popen.wait() != 0:
284 popen.stdout.close()
285 popen.stderr.close()
/third_party/lz4/tests/
H A Dtest-lz4-speed.py51 popen = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=param_shell, cwd=execute.cwd)
52 stdout_lines, stderr_lines = popen.communicate(timeout=args.timeout)
60 if popen.returncode is not None and popen.returncode != 0:
H A Dtest-lz4-list.py217 popen = subprocess.Popen(command.split(" "), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
218 stdout_lines, stderr_lines = popen.communicate()
226 if popen.returncode is not None and popen.returncode != 0:
/third_party/googletest/googletest/scripts/
H A Dcommon.py49 f = os.popen(command, 'r')
/third_party/mesa3d/src/broadcom/vulkan/
H A Dv3dv_debug.c51 p = popen(command, "r"); in v3dv_print_spirv()
/third_party/cups-filters/filter/foomatic-rip/
H A Dpdf.c55 FILE *pd = popen(gscommand, "r"); in pdf_count_pages()
147 FILE *pd = popen(gscommand, "r"); in pdf_extract_pages()
/third_party/python/Lib/
H A Dpipes.py53 for the built-in function open() or for os.popen().
163 return os.popen(cmd, 'r')
171 return os.popen(cmd, 'w')
/third_party/python/Lib/tkinter/test/test_tkinter/
H A Dtest_loadtk.py35 with os.popen('echo $DISPLAY') as pipe:
/third_party/python/Mac/BuildScript/
H A Dbuild-installer.py516 fd = os.popen(commandline, 'r')
527 fd = os.popen(commandline, 'r')
736 fp = os.popen("tar zxf %s 2>&1"%(shellQuote(archiveName),), 'r')
742 fp = os.popen("tar jxf %s 2>&1"%(shellQuote(archiveName),), 'r')
748 fp = os.popen("tar xf %s 2>&1"%(shellQuote(archiveName),), 'r')
754 fp = os.popen("unzip %s 2>&1"%(shellQuote(archiveName),), 'r')
1646 fd = os.popen(cmd, 'r')
/third_party/musl/src/stdio/
H A Dpopen.c12 FILE *popen(const char *cmd, const char *mode) in popen() function
/third_party/musl/porting/liteos_a/user/src/stdio/
H A Dpopen.c12 FILE *popen(const char *cmd, const char *mode) in popen() function
/third_party/python/Tools/scripts/
H A Dnm2def.py45 with os.popen(NM % lib) as pipe:
/third_party/pulseaudio/src/
H A Ddepmod.py24 f = os.popen("nm '%s'" % fn, "r")
/third_party/protobuf/php/ext/google/protobuf/
H A Dmake-preload.php7 $handle = popen($cmd, 'r');
/third_party/icu/tools/scripts/
H A Dicu-file-utf8-check.py48 output_file = os.popen(cmd);
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerUtilPosix.cpp107 return popen(Command, Mode); in OpenProcessPipe()
/third_party/ltp/lib/
H A Dtst_virt.c119 f = popen("systemd-detect-virt", "r"); in try_systemd_detect_virt()

Completed in 15 milliseconds

1234