Home
last modified time | relevance | path

Searched refs:command (Results 1 - 25 of 1212) sorted by relevance

12345678910>>...49

/test/testfwk/developer_test/src/core/build/
H A Dbuild_testcases.py66 command = ["xcopy", "/f", "/s", "/e", "/y",
69 command = ["cp", "-rf", source_dir, target_dir]
71 LOG.info("command: %s" % str(command))
72 return subprocess.call(command) == 0
116 command = [sys.executable, helper_path, 'make',
118 if subprocess.call(command, shell=False) == 0:
127 command = []
129 command.append("--gn-args")
130 command
[all...]
H A Dbuild_lite_manager.py47 command = []
49 command.append("hb")
50 command.append("build")
51 command.append("-p")
52 command.append("%s@hisilicon" % param.productform)
53 command.append("-b")
54 command.append("debug")
56 command.append("target=%s" % param.testsuit)
62 command.append(build_script)
63 command
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Ddmlib_lite.py131 def execute_remote_cmd_with_timeout(telnet, command="", timeout=TIMEOUT,
134 Executes command on the device.
138 command: the command to execute
151 telnet.write(command.encode('ascii') + b"\n")
153 data = telnet.read_until(bytes(command, encoding="utf8"),
158 if command in result:
174 if check_read_test_end(result, command):
177 error_message = "execute %s timed out %s " % (command, timeout)
183 if not status and command
[all...]
H A Ddevice_lite.py283 self.execute_command_with_timeout(command='\r', timeout=5)
284 self.execute_command_with_timeout(command=self.ifconfig, timeout=5)
302 def execute_command_with_timeout(self, command="", case_type="",
304 """Executes command on the device.
307 command: the command to execute
315 filter_result: command execution result
317 error_message: command execution error message
321 LOG.info("%s execute command shell %s with timeout %ss" %
322 (convert_serial(self.__get_serial__()), command,
[all...]
H A Ddevice.py359 Hdc command, ddmlib function.
363 command = "param get %s" % prop_name
364 stdout = self.execute_shell_command(command, timeout=5 * 1000,
375 Hdc command, ddmlib function.
379 command = "param get %s" % prop_name
380 stdout = self.execute_shell_command(command, timeout=5 * 1000,
389 def connector_command(self, command, **kwargs):
399 LOG.debug("{} execute command {} {} {}".format(convert_serial(self.device_sn),
401 command, timeout_msg))
402 if isinstance(command, lis
[all...]
H A Ddmlib.py562 self.device.log.debug("%s execute command: hdc push %s %s" % (
625 def create_file_req(self, command, path):
628 4 byte command + the remote file name.
632 command :
633 the 4 byte command (ID_STAT, ID_RECV, ...)
636 the command.
649 "%ds%ds%ds" % (len(command), FORMAT_BYTES_LENGTH, len(path)),
650 command, self.swap32bits_to_bytes(len(path)), path)
652 def create_send_file_req(self, command, path, mode=0o644):
657 "%ds%ds%ds%ds" % (len(command), FORMAT_BYTES_LENGT
[all...]
/test/testfwk/developer_test/aw/python/distributed/common/
H A Ddevices.py126 def execute_command(cls, command, print_flag=True, timeout=900):
129 print("command: " + command)
130 if subprocess.call(command, shell=True, timeout=timeout) == 0:
139 def execute_command_with_output(cls, command, print_flag=True):
141 print("command: " + command)
143 proc = subprocess.Popen(command,
169 command = "%s %s %s" % (HDC_TOOLS, self.device_params, remount)
170 self.execute_command(command)
[all...]
H A Ddrivers.py51 def make_long_command_file(command, longcommand_path, filename):
56 file_desc.write(command)
58 print(f"Error for make long command file: {file_path}")
63 command = "ls -l %s | grep %s" % (path, target)
65 stdout_info = device.shell_with_output(command)
130 command = "cd %s; rm -rf %s.xml; chmod +x *; ./%s" % (
137 command = "cd %s; rm -rf %s.xml; chmod +x *; GCOV_PREFIX=. " \
145 print("command: %s" % command)
146 sh_file_name, file_path = make_long_command_file(command,
[all...]
/test/testfwk/developer_test/src/core/command/
H A Dconsole.py29 from core.command.run import Run
30 from core.command.gen import Gen
31 from core.command.display import display_help_info
32 from core.command.display import display_show_info
33 from core.command.display import display_version_info
34 from core.command.display import show_wizard_mode
133 help="Specify retry command"
155 help="Run history command by history command id"
310 LOG.error("Wrong help command
[all...]
H A Ddisplay.py76 HLEP_COMMAND_INFOMATION = """use help [follow command] for more information:
78 "show: " + """Display a list of supported show command.
80 "run: " + """Display a list of supported run command.
87 SUPPORT_COMMAND_SHOW = """use show [follow command] for more information:
99 This command is used to execute the selected testcases.
156 This command is used to display device list.
160 This command is used to exit the test framework application.
239 print("The environment is ready, please use the run command to test.")
248 print("This command is not support.")
260 print("This command i
[all...]
H A Drun.py39 from core.command.parameter import Parameter
40 from core.command.distribute_execute import DbinderTest
155 def process_command_run(self, command, options):
230 "command": command,
239 print("The latest command history is: %d" % len(self.history_cmd_list))
248 print("input history command[%d] out of range:", options.runhistory)
251 print("run history command:", cmd_record["raw_cmd"])
253 command = cmd_record["command"]
[all...]
/test/testfwk/xdevice/src/xdevice/_core/command/
H A Dconsole.py115 # Enter xDevice command parser
289 help="Specify retry command"
450 LOG.info("Input command: {}".format(convert_mac(args)))
473 command = options.action
474 if command == "":
478 self._process_command(command, options, para_list, argument.parser)
488 def _process_command(self, command, options, para_list, parser):
489 if command.startswith(ToolCommandType.toolcmd_key_help):
491 elif command.startswith(ToolCommandType.toolcmd_key_show):
493 elif command
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/
H A Dkit_lite.py83 command='AT+RST={}'.format(self.timeout))
125 Execute reset command on the device by cmd serial port and then upload
208 command="uname", timeout=1, retry=2)
230 for command in commands:
231 command = command.replace("nfs_ip", linux_host). \
234 timeout = 15 if command.startswith("mount") else 1
235 if command.startswith("mount"):
238 execute_command_with_timeout(command=command,
[all...]
H A Dkit.py67 @Plugin(type=Plugin.TEST_KIT, id=CKit.command)
87 for command in self.run_command:
88 self._run_command(command, device)
96 for command in self.teardown_command:
97 self._run_command(command, device)
99 def _run_command(self, command, device):
101 command_type = command.get("name").strip()
102 command_value = command.get("value")
267 command = "shell mkdir {}".format(dst)
268 device.connector_command(command)
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Dcpp_driver_lite.py110 command = self._get_execute_command(bin_file)
112 self.set_file_name(request, command)
121 self.dry_run(command, request.listeners)
123 self.run_cpp_test(command, request)
148 command="cd {}".format(execute_dir), timeout=1)
152 command = ".%s" % self.execute_bin
154 command = "./%s" % self.execute_bin
161 return command
193 command="cd /storage", timeout=1)
196 command
[all...]
H A Doh_jsunit_driver.py150 self.config.device.execute_shell_command(command="hilog -r")
479 command = "{} run report \"{}\" \"{}\" \"{}#{}\"". \
485 LOG.debug(command)
486 result = exec_cmd(command, join_result=True)
489 self._write_command_to_file(command, output_dir)
506 def _write_command_to_file(cls, command, output):
512 save_handler.write(command)
514 LOG.debug("Write command to reportCommand.txt success")
560 command = self._get_dry_run_command()
562 command, timeou
[all...]
H A Dconstants.py191 command = "ls -l %s | grep %s" % (path, target)
194 stdout_info = self.device.execute_shell_command(command)
224 def __init__(self, name, log_path, command, execute_jar_path, handler=None, wait_time=0):
228 self.command = command
241 LOG.debug('run java command: {}'.format(convert_mac(self.command)))
242 self.jar_process = subprocess.Popen(self.command, stdout=subprocess.PIPE,
/test/testfwk/developer_test/local_coverage/automate_execute/
H A Dbuild_part.py65 command = ["./build_system.sh", "--abi-type", "generic_generic_arm_64only", "--device-type",
68 command = ["./build_vendor.sh", "--abi-type", "generic_generic_arm_64only", "--device-type",
72 command = ["./build.sh", "--product-name", "rk3568", "--ccache"]
83 command.append("--build-target")
84 command.append(part_name)
89 command.append("--build-target")
90 command.append(test_str)
92 command.append("--gn-args")
93 command.append("use_clang_coverage=true")
94 print(command)
[all...]
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dpublic_method.py48 def get_sn_list(command):
51 proc = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
91 def get_server_dict(command):
97 if " -ts " in command:
98 _, testsuite = command.split(" -ts ")
114 elif " -tp " in command:
115 component_name = command.split(" -tp ")[-1].split(" ")[0]
130 elif " -ss " in command:
131 system_name = command.split(" -ss ")[-1].split(" ")[0]
/test/testfwk/developer_test/src/core/config/
H A Dresource_manager.py188 command = item["value"].strip()
189 device.execute_shell_command(command)
191 command = item["name"] + " " + item["value"]
192 command = command.strip()
193 device.connector_command(command)
216 command = item["name"] + " " + item["value"]
217 command = command.strip()
218 self.lite_device.execute_command_with_timeout(command, case_typ
[all...]
/test/ostest/wukong/test_flow/src/
H A Dtest_flow_factory.cpp24 std::shared_ptr<TestFlow> TestFlowFactory::GetTestFlow(WuKongShellCommand& shellCommand, const std::string& command) in GetTestFlow() argument
27 if (command == "exec") { in GetTestFlow()
29 } else if (command == "special") { in GetTestFlow()
31 } else if (command == "focus") { in GetTestFlow()
/test/testfwk/arkxtest/uitest/server/
H A Dserver_main.cpp53 "usage: uitest <command> [options] \n"
312 string command(argv[1]); in main()
313 if (command == "dumpLayout") { in main()
315 } else if (command == "start-daemon") { in main()
318 } else if (command == "screenCap") { in main()
320 } else if (command == "uiRecord") { in main()
322 } else if (command == "uiInput") { in main()
324 } else if (command == "--version") { in main()
327 } else if (command == "help") { in main()
331 PrintToConsole("Illegal argument: " + command); in main()
[all...]
/test/testfwk/xdevice/src/xdevice/_core/context/
H A Dchannel.py29 def append(cls, command):
30 cls._queue.append(command)
45 def update(cls, index, command):
46 cls._queue[index] = command
/test/testfwk/developer_test/src/core/driver/
H A Dopenharmony.py109 command = self._get_dry_run_command()
111 command, timeout=self.config.timeout, receiver=handler, retry=0)
117 command = self._get_run_command()
119 command, timeout=self.config.timeout, receiver=handler, retry=0)
168 command = ""
172 command = "aa test -p {} -b {} -s unittest OpenHarmonyTestRunner" \
179 command = "aa test -m {} -b {} -s unittest {} {}".format(
182 return command
185 command = ""
187 command
[all...]
/test/testfwk/xdevice/src/xdevice/_core/config/
H A Dresource_manager.py125 command = item["value"].strip()
126 device.execute_shell_command(command)
128 command = "".join((item["name"], " ", item["value"]))
129 command = command.strip()
130 device.execute_command(command)

Completed in 19 milliseconds

12345678910>>...49