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(): |