Skip to content

Commit

Permalink
Merge pull request #6822 from alizelzele/reboot-emulator
Browse files Browse the repository at this point in the history
add reboot option for android emulator
  • Loading branch information
jlipps committed Sep 19, 2016
2 parents bf71e40 + b127b80 commit 9b7451d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/writing-running-appium/default-capabilities-arg.md
Expand Up @@ -52,3 +52,4 @@ Appium 1.5 does away with most CLI flags; the remainder can be converted into JS
| --keep-keychains | keepKeyChains |
| --localizable-strings-dir | localizableStringsDir |
| --show-ios-log | showIOSLog |
| --reboot | reboot |
1 change: 1 addition & 0 deletions docs/en/writing-running-appium/server-args.md
Expand Up @@ -52,6 +52,7 @@ All flags are optional, but some are required in conjunction with certain others
|`--async-trace`|false|Add long stack traces to log entries. Recommended for debugging only.||
|`--webkit-debug-proxy-port`|27753|(IOS-only) Local port used for communication with ios-webkit-debug-proxy|`--webkit-debug-proxy-port 27753`|
|`-dc`, `--default-capabilities`|{}|Set the default desired capabilities, which will be set on each session unless overridden by received capabilities.|`--default-capabilities [ '{"app": "myapp.app", "deviceName": "iPhone Simulator"}' | /path/to/caps.json ]`|
|`--reboot`|false| - (Android-only) reboot emulator after each session and kill it at the end||
|`--command-timeout`|60|[DEPRECATED] No effect. This used to be the default command timeout for the server to use for all sessions (in seconds and should be less than 2147483). Use newCommandTimeout cap instead||
|`-k`, `--keep-artifacts`|false|[DEPRECATED] - no effect, trace is now in tmp dir by default and is cleared before each run. Please also refer to the --trace-dir flag.||
|`--platform-name`|null|[DEPRECATED] - Name of the mobile platform: iOS, Android, or FirefoxOS|`--platform-name iOS`|
Expand Down
9 changes: 9 additions & 0 deletions lib/parser.js
Expand Up @@ -14,6 +14,15 @@ const args = [
dest: 'shell',
}],

[['--reboot'], {
defaultValue: false,
dest: 'reboot',
action: 'storeTrue',
required: false,
help: '(Android-only) reboot emulator after each session and kill it at the end',
nargs: 0,
}],

[['--ipa'], {
required: false,
defaultValue: null,
Expand Down

0 comments on commit 9b7451d

Please sign in to comment.