From 3d54e2c6047418f05b815a706979bfdbd50fa370 Mon Sep 17 00:00:00 2001 From: Jacob Zaval Date: Wed, 13 Dec 2017 14:53:45 -0800 Subject: [PATCH] add sleep for El Capitan platform to avoid race condition this occurs when integrated with the macos-user test recipe --- recipes/disable_software_updates.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/disable_software_updates.rb b/recipes/disable_software_updates.rb index d8711060..44c45749 100644 --- a/recipes/disable_software_updates.rb +++ b/recipes/disable_software_updates.rb @@ -4,6 +4,8 @@ value false end +sleep 10 if node['platform_version'].match?(/10\.11/) + plist 'disable automatic software update check' do path '/Library/Preferences/com.apple.SoftwareUpdate.plist' entry 'AutomaticCheckEnabled'