Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 130) sorted by relevance

123456

/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmd8475a.py560 cmd = "IMSCSCFSTAT? {}".format(virtual_network_id)
561 return self.send_query(cmd)
573 cmd = "IMSCSCFCALL {},{}".format(virtual_network_id, action)
574 self.send_command(cmd)
771 cmd = "LOADSIMPARAM \"" + filepath + '\";ERROR?'
772 self.send_query(cmd, LOAD_SIMULATION_PARAM_FILE_WAIT_TIME)
784 cmd = "LOADCELLPARAM \"" + filepath + '\";ERROR?'
785 status = int(self.send_query(cmd))
787 raise AnritsuError(status, cmd)
849 cmd = "SIMMODEL?"
[all …]
Dmg3710a.py153 cmd = "PORT {}".format(sg_number)
154 self.send_command(cmd)
179 cmd = "OUTP{}:MOD {}".format(sg, state)
180 self.send_command(cmd)
205 cmd = "OUTP{} {}".format(sg, state)
206 self.send_command(cmd)
231 cmd = "SOUR{}:FREQ {}".format(sg, freq)
232 self.send_command(cmd)
257 cmd = "SOUR{}:FREQ:OFFS:STAT {}".format(sg, state)
258 self.send_command(cmd)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py26 import cmd
32 class CmdInput(cmd.Cmd):
94 cmd = ""
98 self.log.info(FAILURE.format(cmd, err))
101 cmd = ""
105 self.log.info(FAILURE.format(cmd, err))
108 cmd = ""
112 self.log.info(FAILURE.format(cmd, err))
116 cmd = "Gatt connect over LE"
123 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500.py205 cmd = 'SOURce:LTE:SIGN:CELL:STATe {}'.format(state)
206 self.send_and_recv(cmd)
244 cmd = 'CONFigure:LTE:SIGN:DMODe:UCSPECific {}'.format(state)
245 self.send_and_recv(cmd)
247 def send_and_recv(self, cmd): argument
257 self._send(cmd)
258 if '?' in cmd:
268 cmd = 'ROUTe:LTE:SIGN:SCENario:{}'.format(mimo.value)
269 self.send_and_recv(cmd)
383 cmd = 'CONFigure:LTE:SIGN:CONNection:KRRC {}'.format(state.value)
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py54 import cmd
64 class CommandInput(cmd.Cmd):
236 cmd = "Include name in the advertisement."
240 self.log.error(FAILURE.format(cmd, err))
243 cmd = "Set the name to be included in the advertisement."
247 self.log.error(FAILURE.format(cmd, err))
260 cmd = "Set the appearance to known SIG values."
264 self.log.error(FAILURE.format(cmd, err))
286 cmd = "Include tx_power_level in advertisement."
290 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py210 def send(self, cmd): argument
221 logging.debug(cmd)
223 self.connection_handle.write(cmd)
227 def cmd(self, cmds, wait=None): member in BudsDevice
244 for cmd in cmds:
245 _, result = self._cmd(cmd, wait=wait)
249 def _cmd(self, cmd, wait=None, throw_error=True): argument
272 self.connection_handle.write(cmd)
310 raise DeviceError('Unknown command %s' % cmd)
332 res = self.cmd('GetPSHex 0x2637')
[all …]
/tools/repohooks/rh/
Dgit.py33 cmd = ['git', 'rev-parse', '--abbrev-ref', 'HEAD']
34 result = rh.utils.run(cmd, capture_output=True)
38 cmd = ['git', 'config', 'branch.%s.remote' % branch]
39 result = rh.utils.run(cmd, capture_output=True)
49 cmd = ['git', 'symbolic-ref', 'HEAD']
50 result = rh.utils.run(cmd, capture_output=True)
56 cmd = ['git', 'config', cfg_option % 'merge']
57 result = rh.utils.run(cmd, capture_output=True)
62 cmd = ['git', 'config', cfg_option % 'remote']
63 result = rh.utils.run(cmd, capture_output=True)
[all …]
Dutils.py73 def cmd(self): member in CompletedProcess
80 return rh.shell.cmd_to_str(self.cmd)
96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
102 super(CalledProcessError, self).__init__(returncode, cmd, stdout)
116 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd)
151 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
196 signum << 8, cmd, msg='Received signal %i' % signum)
262 def run(cmd, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, argument
360 if isinstance(cmd, str):
363 cmd = ['/bin/bash', '-c', cmd]
[all …]
Dhooks.py240 def _run(cmd, **kwargs): argument
248 return rh.utils.run(cmd, **kwargs)
307 def _fixup_func_caller(cmd, **kwargs): argument
315 result = _run(cmd, **kwargs)
322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
325 _run(cmd, **kwargs),
350 cmd = [bpfmt, '-l'] + options.args((), filtered)
354 result = _run(cmd, input=data)
365 cmd = ([tool, '-', '--root', project.dir] +
367 return _check_cmd('checkpatch.pl', project, commit, cmd,
[all …]
/tools/treble/hacksaw/client/
Dcommand_test.go30 cmd := NewCommand(bind.NewFakePathBinder(), "")
32 err := cmd.Handle(args)
39 cmd := NewCommand(bind.NewFakePathBinder(), "")
41 err := cmd.Handle(args)
48 cmd := NewCommand(bind.NewFakePathBinder(), "")
50 if err := cmd.Handle(args); err == nil {
56 cmd := NewCommand(bind.NewFakePathBinder(), "")
58 if err := cmd.Handle(args); err == nil {
70 cmd := NewCommand(bind.NewFakePathBinder(), "")
72 if err = cmd.Handle(args); err != nil {
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_client.py98 cmd = [self._binary,
106 job.run(cmd, timeout=10)
109 cmd = [self._binary,
117 job.run(cmd, timeout=10)
123 cmd = [self._binary,
135 job.run(cmd, timeout=600)
140 cmd = [self._binary,
149 job.run(cmd, timeout=10)
182 cmd = [self._binary,
195 cmd = cmd + ['--vm_file', 'default']
[all …]
/tools/acloud/internal/lib/
Dssh.py36 def _SshCallWait(cmd, timeout=None): argument
50 logger.info("Running command \"%s\"", cmd)
51 process = subprocess.Popen(cmd, shell=True, stdin=None,
63 def _SshCall(cmd, timeout=None): argument
77 logger.info("Running command \"%s\"", cmd)
78 process = subprocess.Popen(cmd, shell=True, stdin=None,
90 def _SshLogOutput(cmd, timeout=None, show_output=False): argument
109 cmd = "exec " + cmd
110 logger.info("Running command \"%s\"", cmd)
111 process = subprocess.Popen(cmd, shell=True, stdin=None,
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py41 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
44 MockAdbProxy()._exec_cmd(cmd)
49 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
52 MockAdbProxy()._exec_cmd(cmd)
56 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
58 result = MockAdbProxy()._exec_cmd(cmd)
63 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
65 result = MockAdbProxy()._exec_cmd(cmd, ignore_status=True)
70 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"grep foo"']
72 result = MockAdbProxy()._exec_cmd(cmd)
[all …]
/tools/treble/hacksaw/workspace/
Dworkspace_test.go270 cmd := exec.Command("git", "-C", projectDir, "init")
271 output, err := cmd.CombinedOutput()
274 cmd.String(), err.Error(), output)
276cmd = exec.Command("git", "-C", projectDir, "commit", `--message="Initial commit"`, "--allow-empty…
277 output, err = cmd.CombinedOutput()
280 cmd.String(), err.Error(), output)
327 cmd = exec.Command("git", "-C", wsProjectDir, "show", branchName)
328 output, err = cmd.CombinedOutput()
331 cmd.String(), err.Error(), output)
362 cmd := exec.Command("git", "-C", roProjectDir, "init")
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiDppTest.py262 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_GEN type=qrcode info=%s" % info
265 cmd += " mac=%s" % mac
268 cmd += " chan=%s" % chan
270 result = device.adb.shell(cmd)
273 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
291 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_GET_URI %s" % uri_id
292 result = device.adb.shell(cmd)
295 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
309 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_REMOVE %s" % uri_id
310 result = device.adb.shell(cmd)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py146 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
161 if isinstance(cmd, list):
162 cmd = ' '.join(cmd)
163 result = job.run(cmd, ignore_status=True, timeout=timeout)
169 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
172 if ignore_status or (ret == 1 and GREP_REGEX.search(cmd)):
175 raise AdbCommandError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
182 def _exec_cmd_nb(self, cmd, **kwargs): argument
189 return job.run_async(cmd, **kwargs)
Dabstract_inst.py91 def _send(self, cmd): argument
102 cmd_es = cmd + self._escseq
106 self._logger.debug('Sent %r to %r:%r.', cmd, self._ip_addr,
111 'to instrument.').format(repr(cmd))
117 'to instrument.').format(repr(cmd))
123 'to instrument.').format(repr(cmd), repr(err))
188 def _query(self, cmd): argument
199 self._send(cmd + ';*OPC?')
221 def _query(self, cmd): argument
233 self._ip_addr, cmd)
[all …]
Dandroid_device.py672 for cmd in ("ps -A", "ps"):
675 '%s | grep "S %s"' % (cmd, package_name),
688 '\"%s\".\nError: %s', cmd, out, e)
692 'Exception %s', package_name, cmd, e)
935 for cmd in ("ps -A", "ps"):
938 '%s | grep "S %s"' % (cmd, package_name),
946 "Exception %s", package_name, cmd, e)
1025 cmd = "find %s -type f" % directory
1029 cmd = "%s -mtime -%ss" % (cmd, seconds)
1031 cmd = "%s -iname %s" % (cmd, match_string)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/
Dtshark.py50 cmd = "{} -i {} -w {}".format(self._executable_path, self._interface,
53 cmd = "{} -a duration:{}".format(cmd, duration)
55 cmd = "{} -c {}".format(cmd, packet_count)
57 cmd = "{} {}".format(cmd, additional_args)
58 return cmd
/tools/acloud/public/actions/
Dremote_instance_fvp_device_factory.py59 cmd = ("tar -cf - --lzop -S -C {images_dir} {artifact_files} | "
64 ssh.ShellCmdWithRetry(cmd)
67 cmd = ("tar -cf - --lzop -S -C {model_dir} . | "
71 ssh.ShellCmdWithRetry(cmd)
77 cmd = "{ssh_cmd} -- mkdir -p lib64".format(ssh_cmd=ssh_cmd)
78 ssh.ShellCmdWithRetry(cmd)
90 cmd = ("{ssh_cmd} -- sh -c \"'ANDROID_HOST_OUT=. "
95 ssh.ShellCmdWithRetry(cmd)
/tools/test/connectivity/acts/framework/acts/controllers/spirent_lib/
Dgss6450.py41 def _put(self, cmd): argument
52 put_cmd = 'shm_put.shtml?' + cmd
57 def _get(self, cmd): argument
68 get_cmd = 'shm_get.shtml?' + cmd
240 cmd = '-f{},-wP'.format(scenario)
242 cmd = '-wP'
244 _ = self._put(cmd)
262 cmd = '-f{},-wR'.format(scenario)
264 cmd = '-wR'
266 _ = self._put(cmd)
/tools/repohooks/tools/
Dpylint.py97 cmd = [pylint]
107 cmd += ['--rcfile', pylintrc]
109 cmd += unknown + opts.files
112 cmd += ['--init-hook', opts.init_hook]
115 os.execvp(cmd[0], cmd)
119 print('%s: unable to run `%s`: %s' % (__file__, cmd[0], e),
122 (__file__, os.path.basename(cmd[0])), file=sys.stderr)
/tools/asuite/atest/
Datest_utils.py178 def _run_limited_output(cmd, env_vars=None): argument
190 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
226 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
284 cmd = get_build_cmd() + list(build_targets)
285 logging.debug('Executing command: %s', cmd)
288 subprocess.check_call(cmd, stderr=subprocess.STDOUT,
292 _run_limited_output(cmd, env_vars=full_env_vars)
549 for cmd in _cmd:
550 if cmd.startswith('--atest-log-file-path'):
551 _cmd.remove(cmd)
[all …]
/tools/treble/hacksaw/cmd/hacksaw/
Dmain.go90 cmd := exec.Command(os.Args[0], os.Args[1:]...)
91 cmd.Stdout = os.Stdout
92 cmd.Stderr = os.Stderr
93 cmd.Env = append(os.Environ(), "HOME="+usr.HomeDir)
94 cmd.SysProcAttr = &syscall.SysProcAttr{
101 if err := cmd.Start(); err != nil {
104 _, err = cmd.Process.Wait()
108 if err = cmd.Process.Release(); err != nil {
/tools/asuite/atest-py2/
Datest_utils.py107 def _run_limited_output(cmd, env_vars=None): argument
119 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
153 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
178 cmd = get_build_cmd() + list(build_targets)
179 logging.debug('Executing command: %s', cmd)
182 subprocess.check_call(cmd, stderr=subprocess.STDOUT,
186 _run_limited_output(cmd, env_vars=full_env_vars)
477 for cmd in _cmd:
478 if cmd.startswith('--atest-log-file-path'):
479 _cmd.remove(cmd)
[all …]

123456