/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_popen.py | 2 """Basic tests for os.popen() 4 Particularly useful for platforms that fake popen. 21 data = os.popen(cmd).read() + '\n' 26 self.assertRaises(TypeError, os.popen) 42 self.assertEqual(os.popen("exit 0").close(), None) 44 self.assertEqual(os.popen("exit 42").close(), 42) 46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
|
test_subprocess.py | 65 class PopenExecuteChildRaises(subprocess.Popen): 66 """Popen subclass for testing cleanup of subprocess.PIPE filehandles when 134 # Popen() called with invalid arguments should raise TypeError 135 # but Popen.__del__ should not complain (issue #12085) 137 self.assertRaises(TypeError, subprocess.Popen, invalid_arg_name=1) 138 argcount = subprocess.Popen.__init__.__code__.co_argcount 140 self.assertRaises(TypeError, subprocess.Popen, *too_many_args) 145 p = subprocess.Popen([sys.executable, "-c", 'print "banana"'], 163 code = ('import sys; from subprocess import Popen, PIPE;' 164 'p = Popen([sys.executable, "-c", "print \'test_stdout_none\'"], [all...] |
test_popen2.py | 7 warnings.filterwarnings("ignore", "os\.popen. is deprecated.*", 23 # if we don't have os.popen, check that 27 from os import popen namespace 28 del popen 54 # The os.popen*() API delegates to the subprocess module (on Unix) 86 # same test as test_popen2(), but using the os.popen*() API 99 # same test as test_popen3(), but using the os.popen*() API
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_popen.py | 2 """Basic tests for os.popen() 4 Particularly useful for platforms that fake popen. 21 data = os.popen(cmd).read() + '\n' 26 self.assertRaises(TypeError, os.popen) 42 self.assertEqual(os.popen("exit 0").close(), None) 44 self.assertEqual(os.popen("exit 42").close(), 42) 46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
|
test_subprocess.py | 65 class PopenExecuteChildRaises(subprocess.Popen): 66 """Popen subclass for testing cleanup of subprocess.PIPE filehandles when 134 # Popen() called with invalid arguments should raise TypeError 135 # but Popen.__del__ should not complain (issue #12085) 137 self.assertRaises(TypeError, subprocess.Popen, invalid_arg_name=1) 138 argcount = subprocess.Popen.__init__.__code__.co_argcount 140 self.assertRaises(TypeError, subprocess.Popen, *too_many_args) 145 p = subprocess.Popen([sys.executable, "-c", 'print "banana"'], 163 code = ('import sys; from subprocess import Popen, PIPE;' 164 'p = Popen([sys.executable, "-c", "print \'test_stdout_none\'"], [all...] |
test_popen2.py | 7 warnings.filterwarnings("ignore", "os\.popen. is deprecated.*", 23 # if we don't have os.popen, check that 27 from os import popen namespace 28 del popen 54 # The os.popen*() API delegates to the subprocess module (on Unix) 86 # same test as test_popen2(), but using the os.popen*() API 99 # same test as test_popen3(), but using the os.popen*() API
|
/external/chromium_org/tools/win/split_link/ |
graph_dependencies.py | 21 popen = subprocess.Popen( 24 popen.communicate() 25 if popen.returncode != 0: 26 return popen.returncode 28 popen = subprocess.Popen( 33 out, _ = popen.communicate() 34 if popen.returncode != 0: 35 return popen.returncod [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/subprocessdata/ |
sigchild_ignore.py | 6 subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait() 8 p = subprocess.Popen([sys.executable, '-c', 'print("albatross")'])
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/subprocessdata/ |
sigchild_ignore.py | 6 subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait() 8 p = subprocess.Popen([sys.executable, '-c', 'print("albatross")'])
|
/external/chromium_org/tools/git/ |
mass-rename.py | 26 popen = subprocess.Popen('git diff --cached --raw -M', 28 out, _ = popen.communicate() 29 if popen.returncode != 0:
|
/external/chromium_org/tools/gyp/test/ios/app-bundle/TestApp/ |
check_no_signature.py | 8 proc = subprocess.Popen(['codesign', '-v', p],
|
/external/chromium_org/build/ |
extract_from_cab.py | 16 popen = subprocess.Popen(args, stdout=subprocess.PIPE) 17 out, _ = popen.communicate() 18 if popen.returncode: 21 return popen.returncode
|
/external/lldb/test/functionalities/process_attach/ |
TestProcessAttach.py | 52 popen = self.spawnSubprocess(exe) 55 self.runCmd("process attach -p " + str(popen.pid)) 69 popen = self.spawnSubprocess(exe)
|
/external/chromium_org/base/allocator/ |
prep_libc.py | 25 popen = subprocess.Popen( 27 out, _ = popen.communicate() 31 return popen.returncode
|
/external/e2fsprogs/include/nonunix/ |
unistd.h | 15 #define popen _popen macro
|
/external/lldb/test/benchmarks/disassembly/ |
TestDoAttachThenDisassembly.py | 37 popen = subprocess.Popen([exe, self.lldbOption], 40 print "pid of spawned process: %d" % popen.pid 45 process = target.AttachToProcessWithID(listener, popen.pid, error)
|
/external/bison/lib/ |
stdio--.h | 39 # undef popen macro 40 # define popen popen_safer macro
|
/external/skia/tools/ |
misc_utils.py | 117 def popen(self, *args, **kwargs): member in class:VerboseSubprocess 118 """Wrapper for subprocess.Popen(). 121 *args: to be passed to subprocess.Popen() 122 **kwargs: to be passed to subprocess.Popen() 124 The output of subprocess.Popen() 126 OSError or subprocess.CalledProcessError: raised by Popen. 130 return subprocess.Popen(*args, **kwargs) 213 *args: to be passed to subprocess.Popen() 214 **kwargs: to be passed to subprocess.Popen() 221 proc = subprocess.Popen(*args, stdout=subprocess.PIPE, **kwargs [all...] |
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
popen.c | 1 /* $NetBSD: popen.c,v 1.32 2012/06/25 22:32:43 abs Exp $ */ 38 static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 5/3/95"; 40 __RCSID("$NetBSD: popen.c,v 1.32 2012/06/25 22:32:43 abs Exp $"); 63 __weak_alias(popen,_popen) 81 popen(const char *command, const char *type) function 128 /* POSIX.2 B.3.2.2 "popen() shall ensure that any streams 129 from previous popen() calls that remain open in the
|
/external/chromium_org/tools/telemetry/telemetry/core/platform/profiler/ |
vtune_profiler_unittest.py | 42 def Popen(self, cmd, **_): 75 'Popen').WithArgs(simple_mock.DONT_CARE).WillReturn(MockPopen(0)) 84 mock_subprocess.ExpectCall('Popen').WithArgs(
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
commands.py | 1 """Execute shell commands via os.popen() and return status, output. 15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') 59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
commands.py | 1 """Execute shell commands via os.popen() and return status, output. 15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') 59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
|
/external/chromium_org/tools/gyp/pylib/gyp/ |
win_tool.py | 119 link = subprocess.Popen(args, 211 popen = subprocess.Popen(args, shell=True, env=env, 213 out, _ = popen.communicate() 217 return popen.returncode 243 popen = subprocess.Popen(args, shell=True, env=env, 245 out, _ = popen.communicate() 257 return popen.returncode 265 popen = subprocess.Popen(args, shell=True, env=env [all...] |
/external/chromium_org/third_party/mesa/ |
redirectoutput.py | 25 ret = subprocess.Popen([sys.executable] + sys.argv[2:], stdout=f).wait()
|
/external/chromium_org/tools/ |
diagnose-me.py | 25 proc = subprocess.Popen(['/usr/bin/ld', '-v'], stdout=subprocess.PIPE) 36 proc = subprocess.Popen(['which', '-a', 'ld'], stdout=subprocess.PIPE) 72 proc = subprocess.Popen(['which', 'ninja'], stdout=subprocess.PIPE) 87 proc = subprocess.Popen([script_path, '--quick-check'],
|