Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dgenerate-ci-type.py16 import subprocess
67 last_commit_message_raw = subprocess.run([
69 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
76 all_commit_message_raw = subprocess.run([
79 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
94 changed_files_raw = subprocess.run([
96 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/contrib/bc/scripts/
H A Dkaratsuba.py32 import subprocess
44 return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
182 p = subprocess.run(cmd + sys.argv[args_idx:], stderr=subprocess.PIPE)
197 p = subprocess.run(cmd + sys.argv[args_idx:], stderr=subprocess.PIPE)
217 p = subprocess.run(cmd, input=indata, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/tools/test/hwpmc/
H A Dpmctest.py24 import subprocess
25 from subprocess import PIPE
33 result = subprocess.run("pmccontrol -L", shell=True, capture_output=True, text=True)
76 p = subprocess.Popen(["pmcstat",
83 p = subprocess.Popen(["pmcstat",
90 p = subprocess.Popen(["pmcstat",
99 p = subprocess.Popen(["gprof",
105 stderr=subprocess.STDOUT)
112 p = subprocess.Popen(["pmcstat", "-p", counter, args.program],
/freebsd/tools/build/
H A Dmake.py58 import subprocess
84 subprocess.check_call(cmd, **kwargs)
95 bmake_source_version = subprocess.run([
97 stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout.strip()
105 bmake_installed_version = subprocess.run([
107 stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout.strip()
204 path = subprocess.run(["brew", "--prefix", package], stdout=subprocess.PIPE,
205 stderr=subprocess.PIPE).stdout.strip()
/freebsd/contrib/kyua/utils/process/
H A Dexecutor.ipp59 /// Directory to enter when running the subprocess.
62 /// subprocess operations do not inadvertently affect our files.
65 /// User to switch to when running the subprocess.
67 /// If not none, the subprocess will be executed as the provided user and
76 /// \param work_directory Directory to enter when running the subprocess.
89 /// Body of the subprocess.
103 /// Forks and executes a subprocess asynchronously.
106 /// \param hook Function or functor to run in the subprocess.
107 /// \param timeout Maximum amount of time the subprocess can run for.
144 /// Forks and executes a subprocess asynchronously in the context of another.
[all …]
H A Dchild.ipp40 /// Spawns a new subprocess and redirects its stdout and stderr to files.
42 /// If the subprocess cannot be completely set up for any reason, it attempts to
45 /// \param hook The function to execute in the subprocess. Must not return.
75 /// Spawns a new subprocess and multiplexes and captures its stdout and stderr.
77 /// If the subprocess cannot be completely set up for any reason, it attempts to
80 /// \param hook The function to execute in the subprocess. Must not return.
/freebsd/sbin/ping/tests/
H A Dinjection.py6 import subprocess
29 create_proc = subprocess.run(
38 subprocess.run(["ifconfig", tun.iface, "up"])
39 subprocess.run(["ifconfig", tun.iface, SRC_ADDR, DST_ADDR])
41 ping = subprocess.Popen(
H A Dtest_ping.py6 import subprocess
155 ) -> subprocess.CompletedProcess:
212 subprocess.run(["ifconfig", tun.iface, "up"], check=True)
213 subprocess.run(["ifconfig", tun.iface, src, dst], check=True)
242 with subprocess.Popen(
243 args=command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
265 return subprocess.CompletedProcess(
730 ping = subprocess.run(
761 ping = subprocess.run(
/freebsd/release/scripts/
H A Dlist-new-changesets.py48 import subprocess
85 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_test_utils.py35 import subprocess
224 stderr = subprocess.STDOUT
226 stderr = subprocess.PIPE
228 p = subprocess.Popen(
230 stdout=subprocess.PIPE,
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dlldb-python3 import subprocess
10 info_json = subprocess.run([lldb, "-l", "python", "-print-script-interpreter-info"],
11 check=True, stdout=subprocess.PIPE, encoding='utf8').stdout
/freebsd/contrib/libpcap/testprogs/
H A Dvisopts.py40 import subprocess
260 … p = subprocess.Popen(['dot', '-Tsvg'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
/freebsd/contrib/libcbor/doc/source/
H A Dconf.py40 import subprocess, os
44 print(subprocess.check_output('cd ../..; mkdir doc/build; doxygen', shell=True))
47 print(subprocess.check_output('cd ../..; mkdir doc/build; doxygen', shell=True))
/freebsd/tests/examples/
H A Dtest_examples.py10 import subprocess
131 assert subprocess.run("ping -c1 192.0.2.1".split()).returncode == 0
132 assert subprocess.run("ping -c1 2001:db8::1".split()).returncode == 0
197 assert subprocess.run("ping -c5 2001:db8:a::2".split()).returncode == 0
205 assert subprocess.run("ping -c5 2001:db8:b::2".split()).returncode == 0
/freebsd/contrib/libxo/doc/
H A Dconf.py24 import subprocess
31 version = subprocess.check_output(vers_cmd, shell=True).decode("utf-8")
/freebsd/tests/atf_python/sys/net/
H A Dtools.py4 import subprocess
27 ps = subprocess.Popen("/sbin/pfctl -g -f -", shell=True,
28 stdin=subprocess.PIPE)
/freebsd/tools/regression/netinet/ip_id_period/
H A Dip_id_period.py32 import subprocess
37 tcpdump = subprocess.Popen('tcpdump -n -i lo0 -w results.pcap icmp', shell=True)
/freebsd/crypto/openssl/fuzz/
H A Dhelper.py16 import subprocess
49 subprocess.call(cmd)
/freebsd/sys/contrib/openzfs/cmd/
H A Dzilstat.in29 import subprocess
389 objid = subprocess.check_output(['zfs',
391 stderr=subprocess.DEVNULL) \
393 except subprocess.CalledProcessError as e:
410 pools = subprocess.check_output(['zpool', 'list', '-Hpo',\
412 except subprocess.CalledProcessError as e:
/freebsd/crypto/krb5/src/clients/ksu/
H A Dt_ksu.py32 out = subprocess.check_output(['userdel', '-r', 'ksutest'],
33 stderr=subprocess.STDOUT)
64 subprocess.check_call(['useradd', '-m', '-r', 'ksutest'])
/freebsd/crypto/krb5/src/util/
H A Dk5test.py403 import subprocess
723 subprocess.call(os.getenv('SHELL'), env=env)
759 infile = subprocess.PIPE
764 proc = subprocess.Popen(args, stdin=infile, stdout=subprocess.PIPE,
765 stderr=subprocess.STDOUT, env=env,
805 code = subprocess.call(args, env=env)
831 proc = subprocess.Popen(args, stdin=null_input, stdout=subprocess.PIPE,
832 stderr=subprocess.STDOUT, env=env,
/freebsd/tests/sys/netpfil/pf/
H A Dreturn.py28 import subprocess
34 ps = subprocess.Popen(cmd, shell=True)
H A Dicmp.py28 import subprocess
34 ps = subprocess.Popen(cmd, shell=True)
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dipfw.py5 import subprocess
114 r = subprocess.run(args, capture_output=True)
/freebsd/crypto/krb5/src/kadmin/dbutil/
H A Dt_tdumputil.py2 from subprocess import *

123