summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-08 12:48:26 -0700
committerTim Smith <tsmith@chef.io>2019-05-08 12:49:40 -0700
commit9fe88289dd89d9f73aaf86c36491e71109de1bf8 (patch)
tree684530a061d1d9012dd685135c6f210c5f384f9e
parentd82c20419b2288c730e0a0c3ff0ad36c2b5b4019 (diff)
downloadchef-debug_info.tar.gz
Add chef version debug info in the kitchen testsdebug_info
This way we know what version we started with and confirm we end up with the right version Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--kitchen-tests/kitchen.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml
index 0b4b1964fc..63311e1d1e 100644
--- a/kitchen-tests/kitchen.yml
+++ b/kitchen-tests/kitchen.yml
@@ -16,9 +16,13 @@ provisioner:
lifecycle:
pre_converge:
+ - remote: /opt/chef/embedded/bin/chef-client -v
+ - remote: /opt/chef/embedded/bin/ohai -v
- remote: /opt/chef/embedded/bin/gem install appbundler appbundle-updater
- remote: /opt/chef/embedded/bin/appbundle-updater chef ohai <%= File.readlines('../Gemfile.lock', File.expand_path(File.dirname(__FILE__))).find { |l| l =~ /^\s+ohai \((\d+\.\d+\.\d+)\)/ }; 'v' + $1 %> --tarball --github chef/ohai
- remote: /opt/chef/embedded/bin/appbundle-updater chef chef <%= ENV['TRAVIS_COMMIT'] || %x(git rev-parse HEAD).chomp %> --tarball --github chef/chef
+ - remote: /opt/chef/embedded/bin/chef-client -v
+ - remote: /opt/chef/embedded/bin/ohai -v
verifier:
name: inspec