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

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

Issue 3256005: Fix tests that rely on rootdev specifying a real block device. (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 4 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 | client/site_tests/hardware_ExternalDrives/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
diff --git a/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py b/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
index a03e3c08501693b909bf2d6f38febbc77c53c294..b42895d9ebb8770959ee84a191ed09fa88c0988e 100644
--- a/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
+++ b/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
@@ -39,8 +39,8 @@ _ERR_DEV_NOT_REMOVE_FMT_STR = \
lambda t: 'Please remove %s.\n請移除 %s\n' % (t, t)
def find_root_dev():
- rootdev = utils.system_output('rootdev')
- return os.path.basename(rootdev[:-1])
+ rootdev = utils.system_output('rootdev -s -d')
+ return os.path.basename(rootdev)
def find_all_storage_dev():
« no previous file with comments | « no previous file | client/site_tests/hardware_ExternalDrives/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698