summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-08 12:48:26 -0700
committerBryan McLellan <btm@loftninjas.org>2019-05-17 11:12:56 -0400
commitae48f17a4a9ecfeb936197b61e8449c547a11d37 (patch)
tree71df11ff4154d26389282844e72987dc1faceb97
parent1a0b678b93cdb88227254207830c559605d90a3a (diff)
downloadchef-btm/14-MSYS-996.tar.gz
Add chef version debug info in the kitchen testsbtm/14-MSYS-996
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.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml
index 5723e13ffd..dbbcd81c1f 100644
--- a/kitchen-tests/kitchen.yml
+++ b/kitchen-tests/kitchen.yml
@@ -15,9 +15,15 @@ provisioner:
lifecycle:
pre_converge:
- - remote: /opt/chef/embedded/bin/gem install appbundle-updater
+ - remote: echo "Chef container's Chef / Ohai release:"
+ - 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'] %> --tarball --github chef/chef
+ - remote: /opt/chef/embedded/bin/appbundle-updater chef chef <%= ENV['TRAVIS_COMMIT'] || %x(git rev-parse HEAD).chomp %> --tarball --github chef/chef
+ - remote: echo "Installed Chef / Ohai release:"
+ - remote: /opt/chef/embedded/bin/chef-client -v
+ - remote: /opt/chef/embedded/bin/ohai -v
verifier:
name: inspec