blob: 44e5f61d6ea3ea594a709d88c40cc7e8841bdbd8 [file] [log] [blame]
Yingdi Yu41546342014-11-30 23:37:53 -08001In test, we set a test-specific "HOME", which cause OS X keychain look for the
2default keychain of a "different" user. If the default keychain does not exist,
3all subsequent calls to OS X keychain will fail. User interaction (such as
4specifying password) is required to create a keychain. However, user interaction
5is not feasible in automated tests.
6
7This problem is caused by the OS X system assumption that one user must have a
8login keychain, which is also the user's default keychain, because a user
9account is always created with a login keychain as default. Thus OS X system
10infers a user according to the HOME env, and did not expect user to change the
11HOME env in normal use.