Changed mount calls to asynchronous to avoid dbus timeouts.
BUG=chromium-os:36666
TEST=Ran the test
Change-Id: Ibe54691e629a556bfe4102db94996d2813c58dac
Previous-Reviewed-on: https://gerrit.chromium.org/gerrit/39879
(cherry picked from commit eb65ee7f851e5a53490606f3176655815b9340cd)
Reviewed-on: https://gerrit.chromium.org/gerrit/40941
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
diff --git a/client/site_tests/platform_CryptohomeMount/platform_CryptohomeMount.py b/client/site_tests/platform_CryptohomeMount/platform_CryptohomeMount.py
index 7ab3887..fbb2107 100644
--- a/client/site_tests/platform_CryptohomeMount/platform_CryptohomeMount.py
+++ b/client/site_tests/platform_CryptohomeMount/platform_CryptohomeMount.py
@@ -37,7 +37,7 @@
raise error.TestFail('Cryptohome could not remove the test user.')
# Mount the test user account
- cmd = ('/usr/sbin/cryptohome --action=mount --user=' + test_user
+ cmd = ('/usr/sbin/cryptohome --async --action=mount --user=' + test_user
+ ' --password=' + test_password + ' --create')
self.__run_cmd(cmd)
# Ensure that the user directory exists
@@ -58,7 +58,7 @@
# Make sure that an incorrect password fails
incorrect_password = 'this_is_an_incorrect_password'
- cmd = ('/usr/sbin/cryptohome --action=mount --user=' + test_user
+ cmd = ('/usr/sbin/cryptohome --async --action=mount --user=' + test_user
+ ' --password=' + incorrect_password)
self.__run_cmd(cmd)
# Ensure that the user directory is not mounted