From 16cfd8e7b465f09c46aee2de0c99dcd3837456ec Mon Sep 17 00:00:00 2001 From: John Keiser Date: Tue, 9 Feb 2016 11:00:19 -0800 Subject: Fix "chef-acceptance destroy" on first run; add -l debug to kitchen --- acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'acceptance/.shared') diff --git a/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb b/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb index e0f860851c..0d4a388cd5 100644 --- a/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +++ b/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb @@ -25,9 +25,10 @@ module KitchenAcceptance property :artifactory_username, String, default: lazy { ENV["ARTIFACTORY_USERNAME"] } property :artifactory_password, String, default: lazy { ENV["ARTIFACTORY_PASSWORD"] } property :env, Hash, default: {} + property :kitchen_options, String, default: "-l debug" action :run do - execute "bundle exec kitchen #{command}#{instances ? " #{instances}" : ""}" do + execute "bundle exec kitchen #{command}#{instances ? " #{instances}" : ""}#{kitchen_options ? " #{kitchen_options}" : ""}" do cwd kitchen_dir env({ "KITCHEN_DRIVER" => driver, -- cgit v1.2.1