Use --wipe-data in avd start command
Change-Id: Id82b237b5fbe444633d4bc6075a312c1bd6be8b2
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/27520
Reviewed-by: Emmanuel Garcia <egarciad@google.com>
Reviewed-by: Godofredo Contreras <godofredoc@google.com>
Commit-Queue: Gary Qian <garyq@google.com>
diff --git a/recipe_modules/android_virtual_device/api.py b/recipe_modules/android_virtual_device/api.py
index 2557067..824412a 100644
--- a/recipe_modules/android_virtual_device/api.py
+++ b/recipe_modules/android_virtual_device/api.py
@@ -68,7 +68,7 @@
output = self.m.python(
'Start Android emulator (API level %s)' % self.version,
avd_script_path,
- ['start', '--no-read-only', '--writable-system', '--avd-config', avd_config],
+ ['start', '--no-read-only', '--writable-system', '--wipe-data', '--avd-config', avd_config],
stdout=self.m.raw_io.output_text()
).stdout
m = re.match('.*pid: (\d+)\)', output)
diff --git a/recipe_modules/android_virtual_device/examples/full.expected/demo zombie processes.json b/recipe_modules/android_virtual_device/examples/full.expected/demo zombie processes.json
index aadcd40..5eb5ee0 100644
--- a/recipe_modules/android_virtual_device/examples/full.expected/demo zombie processes.json
+++ b/recipe_modules/android_virtual_device/examples/full.expected/demo zombie processes.json
@@ -103,6 +103,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/builder/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipe_modules/android_virtual_device/examples/full.expected/demo.json b/recipe_modules/android_virtual_device/examples/full.expected/demo.json
index bfaef0c..309fbc3 100644
--- a/recipe_modules/android_virtual_device/examples/full.expected/demo.json
+++ b/recipe_modules/android_virtual_device/examples/full.expected/demo.json
@@ -103,6 +103,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/builder/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/engine/scenarios.expected/with_failure_upload_0.json b/recipes/engine/scenarios.expected/with_failure_upload_0.json
index 5bc98e2..a26bf20 100644
--- a/recipes/engine/scenarios.expected/with_failure_upload_0.json
+++ b/recipes/engine/scenarios.expected/with_failure_upload_0.json
@@ -275,6 +275,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/engine/scenarios.expected/with_failure_upload_1.json b/recipes/engine/scenarios.expected/with_failure_upload_1.json
index 90b23ee..9210d27 100644
--- a/recipes/engine/scenarios.expected/with_failure_upload_1.json
+++ b/recipes/engine/scenarios.expected/with_failure_upload_1.json
@@ -275,6 +275,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/engine/scenarios.expected/without_failure_upload_0.json b/recipes/engine/scenarios.expected/without_failure_upload_0.json
index b4c5046..668725b 100644
--- a/recipes/engine/scenarios.expected/without_failure_upload_0.json
+++ b/recipes/engine/scenarios.expected/without_failure_upload_0.json
@@ -275,6 +275,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/engine/scenarios.expected/without_failure_upload_1.json b/recipes/engine/scenarios.expected/without_failure_upload_1.json
index b4c5046..668725b 100644
--- a/recipes/engine/scenarios.expected/without_failure_upload_1.json
+++ b/recipes/engine/scenarios.expected/without_failure_upload_1.json
@@ -275,6 +275,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/flutter/android_views.expected/flutter_drive_clean_exit.json b/recipes/flutter/android_views.expected/flutter_drive_clean_exit.json
index 75c76d5..24465bf 100644
--- a/recipes/flutter/android_views.expected/flutter_drive_clean_exit.json
+++ b/recipes/flutter/android_views.expected/flutter_drive_clean_exit.json
@@ -343,6 +343,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/flutter/android_views.expected/flutter_drive_zombie_process.json b/recipes/flutter/android_views.expected/flutter_drive_zombie_process.json
index 72a9c15..35094eb 100644
--- a/recipes/flutter/android_views.expected/flutter_drive_zombie_process.json
+++ b/recipes/flutter/android_views.expected/flutter_drive_zombie_process.json
@@ -343,6 +343,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/flutter/deferred_components.expected/flutter_release_clean_exit.json b/recipes/flutter/deferred_components.expected/flutter_release_clean_exit.json
index f35605c..f08344b 100644
--- a/recipes/flutter/deferred_components.expected/flutter_release_clean_exit.json
+++ b/recipes/flutter/deferred_components.expected/flutter_release_clean_exit.json
@@ -343,6 +343,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],
diff --git a/recipes/flutter/deferred_components.expected/flutter_release_zombie_process.json b/recipes/flutter/deferred_components.expected/flutter_release_zombie_process.json
index 93c6fbc..6c29dc8 100644
--- a/recipes/flutter/deferred_components.expected/flutter_release_zombie_process.json
+++ b/recipes/flutter/deferred_components.expected/flutter_release_zombie_process.json
@@ -343,6 +343,7 @@
"start",
"--no-read-only",
"--writable-system",
+ "--wipe-data",
"--avd-config",
"[CACHE]/avd/src/tools/android/avd/proto/generic_android31.textpb"
],