Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: testing/iossim/iossim.mm

Issue 2147793004: Make -w wipe a standalone flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/iossim.mm
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm
index 58890ab5ad815b0c3fb2236c7825b88cc676f744..3c1e353eeae30918d9da25c6deb7af088068e7f9 100644
--- a/testing/iossim/iossim.mm
+++ b/testing/iossim/iossim.mm
@@ -336,6 +336,13 @@ int main(int argc, char* const argv[]) {
exit(kExitSuccess);
}
+ KillSimulator();
+ if (wants_wipe) {
+ WipeDevice(udid);
+ printf("Device wiped.\n");
+ exit(kExitSuccess);
+ }
+
// There should be at least one arg left, specifying the app path. Any
// additional args are passed as arguments to the app.
if (optind < argc) {
@@ -364,11 +371,6 @@ int main(int argc, char* const argv[]) {
exit(kExitInvalidArguments);
}
- KillSimulator();
- if (wants_wipe) {
- WipeDevice(udid);
- }
-
RunApplication(app_path, xctest_path, udid, app_env, cmd_args);
KillSimulator();
return kExitSuccess;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698