Home
last modified time | relevance | path

Searched refs:run_cmd (Results 1 – 25 of 34) sorted by relevance

12

/external/autotest/site_utils/
Dautomated_deploy_unittest.py34 def testUpdateProdBranchWithNoNewChanges(self, run_cmd): argument
39 run_cmd.return_value = None
43 run_cmd.assert_has_calls(expect_cmds)
47 def testUpdateProdBranchRebaseToCorrectHash(self, run_cmd): argument
52 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
58 run_cmd.assert_has_calls(expect_cmds)
62 def testUpdateProdBranchRebaseToProdNext(self, run_cmd): argument
67 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
75 run_cmd.assert_has_calls(expect_cmds)
79 def testUpdateProdBranchParseCommitRange(self, run_cmd): argument
[all …]
Ddeploy_server_local_unittest.py89 def test_verify_repo_clean(self, run_cmd): argument
95 run_cmd.return_value = 'nothing to commit (working directory clean)\n'
99 run_cmd.return_value = self.PROD_STATUS
104 run_cmd.return_value = "That's a very dirty repo you've got."
109 def test_repo_versions(self, run_cmd): argument
123 run_cmd.return_value = self.PROD_VERSIONS
127 run_cmd.assert_called_with(
132 def test_repo_sync_not_for_push_servers(self, run_cmd): argument
140 run_cmd.assert_has_calls(expect_cmds)
143 def test_repo_sync_for_push_servers(self, run_cmd): argument
[all …]
Dbind_mysql_to_cpuset.sh56 function run_cmd() { function
122 run_cmd "mkdir -p ${MOUNT_DIR}"
123 run_cmd "mount -t cpuset none ${MOUNT_DIR}"
146 run_cmd "kill -9 ${proc}"
149 run_cmd "rmdir ${MOUNT_DIR}/${MYSQL_CPUSET}"
151 run_cmd "umount ${MOUNT_DIR}"
225 run_cmd "mkdir -p ${MOUNT_DIR}/${MYSQL_CPUSET}"
228 run_cmd "cd ${MOUNT_DIR}/${MYSQL_CPUSET}"
233 run_cmd "bash -c \"/bin/echo ${MYSQL_CPUS} > cpus\""
239 run_cmd "bash -c \"/bin/echo ${MYSQL_PID} > tasks\""
Drpc_flight_recorder.py216 def run_cmd(self, cmd, expected=None): member in AfeMonitor
255 self.run_cmd('get_server_time')
256 self.run_cmd('ping_db', [True])
/external/autotest/server/site_tests/platform_Flashrom/
Dplatform_Flashrom.py31 def run_cmd(self, command, checkfor=''): member in platform_Flashrom
50 self.run_cmd('flashrom -p host --wp-status', checkfor='is disabled')
52 self.run_cmd('flashrom -p ec --wp-status', checkfor='is disabled')
54 self.run_cmd('flashrom -p ec:dev=1 --wp-status',
64 output = self.run_cmd('mosys eeprom map | grep %s' % fmap)
80 self.run_cmd('flashrom -E -i RW_SECTION_B', 'SUCCESS')
83 self.run_cmd('chromeos-firmwareupdate --mode=factory',
91 outdir = self.run_cmd('chromeos-firmwareupdate --sb_extract')[-1]
99 self.run_cmd('dd bs=1 skip=%d count=%d if=%s of=%s 2>&1'
105 self.run_cmd('flashrom -r -i RW_SECTION_B:%s' % rw_b2, 'SUCCESS')
[all …]
/external/autotest/cli/
Dacl_unittest.py81 self.run_cmd(argv=['atest', 'acl', 'list', '-v'],
92 self.run_cmd(argv=['atest', 'acl', 'list', 'acl0'],
103 self.run_cmd(argv=['atest', 'acl', 'list', '-v', '--user', 'user0'],
114 self.run_cmd(argv=['atest', 'acl', 'list', '-m', 'host0'],
127 self.run_cmd(argv=['atest', 'acl', 'list', '-m', 'host0', '-v'],
180 self.run_cmd(argv=['atest', 'acl', 'create', 'acl0',
191 self.run_cmd(argv=['atest', 'acl', 'create', 'acl0',
206 self.run_cmd(argv=['atest', 'acl', 'delete', 'acl0',
213 self.run_cmd(argv=['atest', 'acl', 'delete', 'acl0',
224 self.run_cmd(argv=['atest', 'acl', 'delete',
[all …]
Dlabel_unittest.py48 self.run_cmd(argv=['atest', 'label', 'list'],
55 self.run_cmd(argv=['atest', 'label', 'list', '-d'],
62 self.run_cmd(argv=['atest', 'label', 'list', '--all'],
69 self.run_cmd(argv=['atest', 'label', 'list', '-t'],
76 self.run_cmd(argv=['atest', 'label', 'list',
86 self.run_cmd(argv=['atest', 'label', 'create', 'label0', 'label1'],
99 self.run_cmd(argv=['atest', 'label', 'create', 'label0', 'label1'],
118 self.run_cmd(argv=['atest', 'label', 'delete', 'label0', 'label1', '--no-confirmation'],
126 self.run_cmd(argv=['atest', 'label', 'add', 'label0',
136 self.run_cmd(argv=['atest', 'label', 'remove', 'label0',
Dshard_unittest.py21 self.run_cmd(argv=['atest', 'shard', 'list'],
29 self.run_cmd(argv=['atest', 'shard', 'create',
38 self.run_cmd(argv=['atest', 'shard', 'create',
51 self.run_cmd(argv=['atest', 'shard', 'add_boards',
60 self.run_cmd(argv=['atest', 'shard', 'add_boards',
72 self.run_cmd(argv=['atest', 'shard', 'add_boards',
86 self.run_cmd(argv=['atest', 'shard', 'delete',
Dtest_unittest.py55 self.run_cmd(argv=['atest', 'test', 'list'],
64 self.run_cmd(argv=['atest', 'test', 'list', '--all'],
73 self.run_cmd(argv=['atest', 'test', 'list', '--experimental'],
89 self.run_cmd(argv=['atest', 'test', 'list', 'test3'],
101 self.run_cmd(argv=['atest', 'test', 'list', 'test3,test1'],
113 self.run_cmd(argv=['atest', 'test', 'list', 'test3', 'test1'],
123 self.run_cmd(argv=['atest', 'test', 'list', '-v'],
133 self.run_cmd(argv=['atest', 'test', 'list', '-d'],
142 self.run_cmd(argv=['atest', 'test', 'list', '-d', '-v'],
Djob_unittest.py112 self.run_cmd(argv=['atest', 'job', 'list'],
122 self.run_cmd(argv=['atest', 'job', 'list', '-u', 'Cringer'],
132 self.run_cmd(argv=['atest', 'job', 'list', '--all'],
141 self.run_cmd(argv=['atest', 'job', 'list', '5964'],
161 self.run_cmd(argv=['atest', 'job', 'list', '5964', '-v'],
182 self.run_cmd(argv=['atest', 'job', 'list', 'myt*'],
202 self.run_cmd(argv=['atest', 'job', 'list', '--all', '--verbose'],
224 self.run_cmd(argv=['atest', 'job', 'stat', '180'],
255 self.run_cmd(argv=['atest', 'job', 'stat', '6761',
294 self.run_cmd(argv=['atest', 'job', 'stat', '6761',
[all …]
Dhost_unittest.py123 self.run_cmd(argv=['atest', 'host', 'list'],
153 self.run_cmd(argv=['atest', 'host', 'list'],
184 self.run_cmd(argv=['atest', 'host', 'list', 'host1'],
206 self.run_cmd(argv=['atest', 'host', 'list', 'host1',
242 self.run_cmd(argv=['atest', 'host', 'list', 'host1',
266 self.run_cmd(argv=['atest', 'host', 'list',
278 self.run_cmd(argv=['atest', 'host', 'list',
311 self.run_cmd(argv=['atest', 'host', 'list',
344 self.run_cmd(argv=['atest', 'host', 'list',
366 self.run_cmd(argv=['atest', 'host', 'list',
[all …]
Duser_unittest.py64 self.run_cmd(argv=['atest', 'user', 'list'],
81 self.run_cmd(argv=['atest', 'user', 'list', 'user0'],
92 self.run_cmd(argv=['atest', 'user', 'list', '--acl', 'acl0'],
103 self.run_cmd(argv=['atest', 'user', 'list', '--access_level', '2'],
114 self.run_cmd(argv=['atest', 'user', 'list', '--verbose'],
131 self.run_cmd(argv=['atest', 'user', 'list', '--ulist', ufile.name,
146 self.run_cmd(argv=['atest', 'user', 'list', '--acl', 'acl0', '-v'],
156 self.run_cmd(argv=['atest', 'user', 'list',
Datest_unittest.py28 outputs = self.run_cmd(argv + [help], exit_code=0,
62 self.run_cmd(['atest'], exit_code=1,
69 self.run_cmd(['atest', 'bad_topic'], exit_code=1,
76 self.run_cmd(['atest', 'host', 'bad_action'], exit_code=1,
/external/swiftshader/third_party/subzero/pydir/
Dcrosstest_generator.py32 def RunNativePrefix(toolchain_root, target, attr, run_cmd): argument
52 return (prefix + ' ' + run_cmd) if prefix else run_cmd
196 run_cmd = run_cmd_base
198 run_cmd = '{root}/run.py -q '.format(root=root) + run_cmd
200 run_cmd = (
203 root=root, arch=NonsfiLoaderArch(target)) + run_cmd
204 run_cmd = RunNativePrefix(args.toolchain_root, target, attr,
205 run_cmd)
207 run_cmd = RunNativePrefix(args.toolchain_root, target, attr,
208 run_cmd)
[all …]
/external/autotest/server/site_tests/firmware_Mosys/
Dfirmware_Mosys.py37 lines = self.run_cmd('mosys help')
49 def run_cmd(self, command): member in firmware_Mosys
72 lines = self.run_cmd('fwtool ec version')
74 lines = self.run_cmd('ectool version')
104 lines = self.run_cmd('ectool --dev 1 version')
135 lines = self.run_cmd(lsb_info)
181 output = self.run_cmd(command)[0]
196 output = self.run_cmd(command)[0]
210 output = self.run_cmd(command)[0]
218 lines = self.run_cmd(command)
[all …]
/external/netperf/doc/examples/
Drunemomniaggdemo.sh14 function run_cmd { function
185 run_cmd
193 run_cmd
202 run_cmd
215 run_cmd
/external/iproute2/tipc/
Dpeer.c72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer_rm()
92 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer()
Dmedia.c153 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_get()
234 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_set()
259 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media()
Dnode.c220 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_node_set()
242 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_node_get()
266 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_node()
Dlink.c156 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_get()
409 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_stat()
492 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_set()
519 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link()
Dcmdl.h41 int run_cmd(struct nlmsghdr *nlh, const struct cmd *caller,
Dtipc.c95 if ((res = run_cmd(NULL, &cmd, cmds, &cmdl, NULL)) != 0) in main()
/external/autotest/client/common_lib/
Dpackages.py56 run_cmd = None
65 run_cmd = 'ssh %s@%s "%s%s"' % (username, host, cd_str, cmd)
67 run_cmd = 'ssh %s "%s%s"' % (host, cd_str, cmd)
72 run_cmd = "%s%s" % (cd_str, cmd)
74 if run_cmd:
75 return utils.run(run_cmd, ignore_status=ignore_status)
/external/autotest/server/site_tests/firmware_FMap/
Dfirmware_FMap.py79 def run_cmd(self, command): member in firmware_FMap
99 lines = self.run_cmd("mosys eeprom map")
/external/toolchain-utils/deprecated/
Drun_benchmarks.py143 run_cmd = line
149 sshargs += "time -p %s'" % run_cmd

12