Tests that involve OSX keychain fail on Xcode server
| Originator: | bartelmess | ||
| Number: | rdar://15159828 | Date Originated: | 05-Oct-2013 01:48 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: |
When trying to access the default keychain for a user in a unit test, it fails on OS X server.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
'ServerLogs-Batous-Mac-mini-131009-230545.tgz' was successfully uploaded.
Apple Developer Relations 09-Oct-2013 09:35 PM
Engineering has requested the following information in order to further investigate this issue:
Please provide us with the output of "sudo serverloggather".
Also it seems like it has something to do with how the tests are run on OS X. I've set a login shell for the _xcstest user and it seems to have a login keychain which is also marked as default
sh-3.2$ security list-keychains "/private/var/_xcstest/Library/Keychains/login.keychain" "/Library/Keychains/System.keychain"
sh-3.2$ security default-keychain "/private/var/_xcstest/Library/Keychains/login.keychain"
I've created a sample project, to demonstrate the issue. You can clone it from here: https://git.marketcircle.net/scm/~tbartelmess/keychain-test.git
To be a bit more precise about the issue. I have tests that are accessing the OSX Keychain (the default keychain for the user), when you run them locally, it works fine. If you run them on a Bot, it fails.