/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | utils.py | 28 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 D | utils.py | 21 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 D | install_coverage_tools.py | 20 import subprocess namespace 24 proc = subprocess.Popen(command, shell=True) 27 except subprocess.TimeoutExpired: 41 subprocess.call(["sudo", "echo", ""])
|
H A D | build_part.py | 21 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 D | public_method.py | 20 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 D | devices.py | 22 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 D | drivers.py | 21 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 D | util.py | 27 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 D | utils.py | 22 import subprocess namespace 24 from subprocess import Popen, PIPE, STDOUT, TimeoutExpired 124 proc = subprocess.Popen(command, shell=True) 127 except subprocess.TimeoutExpired:
|
H A D | coverage_tools.py | 24 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 D | constants.py | 20 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 D | suite.py | 23 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 D | utils.py | 25 import subprocess namespace 191 proc = subprocess.Popen(cmd)
|
H A D | judgePart.py | 25 import subprocess namespace
|
/test/testfwk/developer_test/src/core/build/ |
H A D | build_testcases.py | 23 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 D | build_lite_manager.py | 21 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 D | run.py | 21 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 D | gen.py | 21 import subprocess namespace 45 subprocess.call(command, shell=False)
|
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
H A D | kit.py | 25 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 D | benchmark_reporter.py | 21 import subprocess namespace 53 subprocess.call(command, shell=False)
|
/test/testfwk/developer_test/libs/fuzzlib/ |
H A D | fuzzer_helper.py | 23 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 D | suite.py | 23 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 D | after_lcov_branch.py | 20 import subprocess namespace 66 subprocess.Popen("mv %s %s" % (f"{source_dir}_bk{suffix_name}", path),
|
H A D | build_before_generate.py | 20 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 D | kit_lite.py | 24 import subprocess namespace 139 return_code, out = subprocess.getstatusoutput(cmd)
|