From 0845efd80fc6c9c58363f6fbe062b831a9836555 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 29 May 2018 07:18:03 -0400 Subject: [PATCH] [tests] Make sure accessing the keychain doesn't make macOS show any dialogs. (#4141) --- jenkins/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 7f6bf1a7ed..2848a43683 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -23,6 +23,10 @@ security unlock-keychain -p `cat ~/.config/keychain` echo "Increase keychain unlock timeout" security set-keychain-settings -lut 7200 +# Prevent dialogs from asking for permissions. +# http://stackoverflow.com/a/40039594/183422 +security set-key-partition-list -S apple-tool:,apple: -s -k `cat ~/.config/keychain` builder.keychain + # clean mono keypairs (used in tests) rm -rf ~/.config/.mono/keypairs/