Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 - 25 of 39) sorted by relevance

12

/test/testfwk/xdevice/src/xdevice/_core/
H A Dutils.py28 import subprocess namespace
66 def start_standing_subprocess(cmd, pipe=subprocess.PIPE, return_result=False):
67 """Starts a non-blocking subprocess that is going to continue running after
70 A subprocess group is actually started by setting sid, so we can kill all
71 the processes spun out from the subprocess when stopping it. This is
75 cmd: Command to start the subprocess with.
80 The subprocess that got started.
83 process = subprocess.Popen(cmd, stdout=pipe, shell=False,
94 """Stops a subprocess started by start_standing_subprocess.
102 if isinstance(process, subprocess
[all...]
/test/xts/tools/lite/reliability/
H A Dutils.py21 import subprocess namespace
45 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
46 stderr=subprocess.PIPE, shell=False,
49 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
50 stderr=subprocess.PIPE, shell=True)
/test/testfwk/developer_test/local_coverage/automate_execute/
H A Dinstall_coverage_tools.py20 import subprocess namespace
24 proc = subprocess.Popen(command, shell=True)
27 except subprocess.TimeoutExpired:
41 subprocess.call(["sudo", "echo", ""])
H A Dbuild_part.py21 import subprocess namespace
95 if subprocess.call(command) == 0:
127 subprocess.run("python3 %s %s" % (build_before_path, test_part_str), shell=True)
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dpublic_method.py20 import subprocess namespace
51 proc = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
52 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/test/testfwk/developer_test/aw/python/distributed/common/
H A Ddevices.py22 import subprocess namespace
130 if subprocess.call(command, shell=True, timeout=timeout) == 0:
143 proc = subprocess.Popen(command,
144 stdout=subprocess.PIPE,
145 stderr=subprocess.PIPE,
H A Ddrivers.py21 import subprocess namespace
91 process = subprocess.Popen("tar -zxf %s -C %s" % (tar_path, cxx_cov_path), shell=True)
95 subprocess.Popen("tar -zxf %s -C %s > /dev/null 2>&1" %
97 subprocess.Popen("rm -rf %s" % tar_path, shell=True)
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dutil.py27 import subprocess namespace
303 first_process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False)
306 findstr_process = subprocess.Popen(findstr_command, stdin=first_process.stdout,
307 stderr=subprocess.PIPE,
308 stdout=subprocess.PIPE,
/test/testfwk/developer_test/local_coverage/
H A Dutils.py22 import subprocess namespace
24 from subprocess import Popen, PIPE, STDOUT, TimeoutExpired
124 proc = subprocess.Popen(command, shell=True)
127 except subprocess.TimeoutExpired:
H A Dcoverage_tools.py24 import subprocess namespace
155 subprocess.run("python3 %s %s" % (interface_path, partname_str), shell=True)
183 subprocess.run("python3 %s" % keyword_path, shell=True)
195 subprocess.run("python3 %s " % after_lcov_branch_path, shell=True)
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Dconstants.py20 import subprocess namespace
242 self.jar_process = subprocess.Popen(self.command, stdout=subprocess.PIPE,
266 """ Stops a process started and subprocess
271 subprocess.Popen(cmd.split(),
272 stdout=subprocess.PIPE,
273 stderr=subprocess.PIPE,
277 LOG.debug("kill subprocess exception error:{}".format(_err))
/test/xts/tools/build/
H A Dsuite.py23 import subprocess namespace
90 subprocess.check_call(command0, cwd=self.args.source_dir)
91 subprocess.check_call(command1, cwd=ohos_dir)
92 subprocess.check_call(command0, cwd=devicetest_dir)
93 except subprocess.CalledProcessError as exc:
160 subprocess.call(["cp", "-rf", file_path, suite_path])
168 subprocess.call(["find", suite_path, "-name", "*.interface.jar",
320 subprocess.call(["rm", "-rf", target])
321 subprocess.call(["cp", "-rf", source, target])
H A Dutils.py25 import subprocess namespace
191 proc = subprocess.Popen(cmd)
H A DjudgePart.py25 import subprocess namespace
/test/testfwk/developer_test/src/core/build/
H A Dbuild_testcases.py23 import subprocess namespace
72 return subprocess.call(command) == 0
118 if subprocess.call(command, shell=False) == 0:
303 if subprocess.call(build_command) == 0:
329 if subprocess.call(build_deps_files_command) == 0:
358 if subprocess.call(build_part_deps_command) == 0:
395 if subprocess.call(build_command) == 0:
H A Dbuild_lite_manager.py21 import subprocess namespace
71 build_result = subprocess.call(command) == 0
97 build_result = subprocess.call(command) == 0
/test/testfwk/developer_test/src/core/command/
H A Drun.py21 import subprocess namespace
168 subprocess.run("python3 {} {} {}".format(
172 subprocess.run("python3 {} {} {}".format(
179 subprocess.run("python3 %s command_str=%s" % (
317 coverage_process = subprocess.Popen("rm -rf %s" % coverage_path, shell=True)
411 subprocess.run("python3 %s command_str=%s" % (pull_service_gcov_path, current_raw_cmd), shell=True)
419 subprocess.run("python3 %s testpart=%s" % (
H A Dgen.py21 import subprocess namespace
45 subprocess.call(command, shell=False)
/test/testfwk/xdevice/src/xdevice/_core/testkit/
H A Dkit.py25 import subprocess namespace
265 sub_process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
266 stderr=subprocess.PIPE)
301 subprocess.call(
/test/testfwk/developer_test/libs/benchmark/report/
H A Dbenchmark_reporter.py21 import subprocess namespace
53 subprocess.call(command, shell=False)
/test/testfwk/developer_test/libs/fuzzlib/
H A Dfuzzer_helper.py23 import subprocess namespace
210 ret = subprocess.check_call(build_script, cwd=SOURCE_ROOT_DIR,
213 ret = subprocess.check_call(build_script, cwd=SOURCE_ROOT_DIR)
215 except subprocess.CalledProcessError:
/test/xts/tools/lite/build/
H A Dsuite.py23 import subprocess namespace
188 subprocess.check_call(command, cwd=self.args.project_dir)
189 subprocess.check_call(command, cwd=ohos_dir)
190 except subprocess.CalledProcessError as exc:
/test/testfwk/developer_test/local_coverage/restore_comment/
H A Dafter_lcov_branch.py20 import subprocess namespace
66 subprocess.Popen("mv %s %s" % (f"{source_dir}_bk{suffix_name}", path),
H A Dbuild_before_generate.py20 import subprocess namespace
80 subprocess.Popen("mv %s %s" % (f"{source_dir}_bk{suffix_name}", path),
/test/testfwk/developer_test/src/core/testkit/
H A Dkit_lite.py24 import subprocess namespace
139 return_code, out = subprocess.getstatusoutput(cmd)

Completed in 12 milliseconds

12