Initialize the command and all files that need to be pushed to the Android device.
(self, shell, args=None, cmd_prefix=None, timeout=60, env=None,
verbose=False, test_case=None, handle_sigterm=False,
log_process_stats=False)
| 353 | driver = None |
| 354 | |
| 355 | def __init__(self, shell, args=None, cmd_prefix=None, timeout=60, env=None, |
| 356 | verbose=False, test_case=None, handle_sigterm=False, |
| 357 | log_process_stats=False): |
| 358 | """Initialize the command and all files that need to be pushed to the |
| 359 | Android device. |
| 360 | """ |
| 361 | super(AndroidCommand, self).__init__( |
| 362 | shell, args=args, cmd_prefix=cmd_prefix, timeout=timeout, env=env, |
| 363 | verbose=verbose, handle_sigterm=handle_sigterm, |
| 364 | log_process_stats=log_process_stats) |
| 365 | |
| 366 | self.args = [str(arg) for arg in args] |
| 367 | |
| 368 | test_case_resources = test_case.get_android_resources() if test_case else [] |
| 369 | files_from_args = files_from_relative_args(args) |
| 370 | self.files_to_push = test_case_resources + files_from_args |
| 371 | |
| 372 | def execute(self, **additional_popen_kwargs): |
| 373 | """Execute the command on the device. |
nothing calls this directly
no test coverage detected