Home | History | Annotate | Download | only in targetprep

Lines Matching refs:command

46 @OptionClass(alias = "run-host-command")
56 name = "host-setup-command",
58 "Command to be run before the test. Can be repeated. "
66 name = "host-teardown-command",
67 description = "Command to be run after the test. Can be repeated."
72 name = "host-background-command",
74 "Background command to be run before the test. Can be repeated. "
85 description = "Timeout for each command specified."
94 * An interface simply wraps the OutputStream and InputStreamSource for the background command
168 // Upload log of each background command use external logger.
175 CLog.e("Failed to close background command log output stream.", exception);
181 * Sequentially runs command from specified list.
186 for (final String command : commands) {
187 final CommandResult result = getRunUtil().runTimedCmd(mTimeout, command.split("\\s+"));
191 "Command %s finished successfully, stdout = [%s].",
192 command, result.getStdout());
196 "Command %s failed, stdout = [%s], stderr = [%s].",
197 command, result.getStdout(), result.getStderr());
200 CLog.e("Command %s timed out.", command);
203 CLog.e("Exception occurred when running command %s.", command);
210 * Sequentially runs background command from specified list.
218 String command = bgCommands.get(i);
219 CLog.d("About to run host background command: %s", command);
223 Arrays.asList(command.split("\\s+")),
226 CLog.e("Failed to run command: %s", command);
234 * For each command in the list, replace placeholder (if any) with real device serial number in
242 String command =
244 commands.set(i, command);
259 * Create a BgCommandLog object that is based on a temporary file for each background command
261 * @return A list of BgCommandLog object matching each command
267 for (String command : mBgCommands) {
269 CLog.d("Redirect output to %s for command: %s", file.getAbsolutePath(), command);