summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-05 10:40:21 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-05 10:40:21 +0600
commitec9e910489e5e3e69a1e93ebd983e61f54232e71 (patch)
tree4f4225ecd958cc894164123245b770369736354b /kitchen-tests
parent3292bfc73ff4156a7b7308e6f7f948b9d8342dec (diff)
downloadchef-ec9e910489e5e3e69a1e93ebd983e61f54232e71.tar.gz
Updated the recipe to remove Git completely before updating it.
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/macos.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
index 95b2b8e827..5b6818367a 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -66,6 +66,12 @@ chef_client_launchd "Every 30 mins Infra Client run" do
action :enable
end
+execute "find the user" do
+ command "whoami"
+ live_stream true
+ action :run
+end
+
# We're overcoming a problem where Homebrew updating Git on MacOS throws a symlink error
# We remove git completely to allow homebrew to update it.
execute "remove git" do