From 0e567bd364659f24b048e090518c9fe53631e339 Mon Sep 17 00:00:00 2001 From: Alex Clay Date: Mon, 9 Mar 2020 23:23:32 -0400 Subject: [PATCH] Fail fast on Windows when setting up dependency scripts --- lib/kitchen/provisioner/salt_solo.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/kitchen/provisioner/salt_solo.rb b/lib/kitchen/provisioner/salt_solo.rb index d7c87521..44b84557 100644 --- a/lib/kitchen/provisioner/salt_solo.rb +++ b/lib/kitchen/provisioner/salt_solo.rb @@ -408,6 +408,13 @@ def prepare_grains end def prepare_dependencies + # Dependency scripts are bash scripts only + # Copying them clobbers the kitchen temp directory + # with a file named `kitchen`. If adding Windows + # support for dependencies, relocate into a + # sub-directory + return if windows_os? + # upload scripts sandbox_scripts_path = File.join(sandbox_path, config[:salt_config], 'scripts') info("Preparing scripts into #{config[:salt_config]}/scripts")