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

Unified Diff: client/site_tests/factory_Wipe/factory_Wipe.py

Issue 3362018: Kill factory partition dead. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: . Created 10 years, 3 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
Index: client/site_tests/factory_Wipe/factory_Wipe.py
diff --git a/client/site_tests/factory_Wipe/factory_Wipe.py b/client/site_tests/factory_Wipe/factory_Wipe.py
index d4a6c71daef9818b76dd28cf8311c12468ecffad..904b0ae8c10468f4932341b4d80011d958538681 100644
--- a/client/site_tests/factory_Wipe/factory_Wipe.py
+++ b/client/site_tests/factory_Wipe/factory_Wipe.py
@@ -19,8 +19,11 @@ class factory_Wipe(test.test):
factory.log('switch to boot from release image and prepare wipe')
+ # Switch to the release image.
+ utils.run('./switch_partitions.sh')
+
# Tag the current image to be wiped according to preference
- # (secure or fast).
+ # (secure or fast). Don't tag until partition switch passes.
tag_filename = '/mnt/stateful_partition/factory_install_reset'
if secure_wipe:
utils.run('touch %s' % tag_filename)
@@ -29,8 +32,6 @@ class factory_Wipe(test.test):
# Copy the wipe splash image to state partition.
utils.run('cp -f wipe_splash.png /mnt/stateful_partition/')
- # Switch to the release image.
- utils.run('./switch_partitions.sh')
# Time for reboot.
utils.run('shutdown -r now')

Powered by Google App Engine
This is Rietveld 408576698