diff options
author | Tim Smith <tsmith@chef.io> | 2019-05-08 12:48:26 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-05-10 17:53:56 -0700 |
commit | 2ebae52950e951b810633feb70e1f2de9ca531a6 (patch) | |
tree | bff701d1800490068d3b8762e960e72291abd7e4 /kitchen-tests | |
parent | 91ef348e8039ea181f785a714fa317d421ac439e (diff) | |
download | chef-2ebae52950e951b810633feb70e1f2de9ca531a6.tar.gz |
Add chef version debug info in the kitchen tests
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>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/kitchen.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml index 0b4b1964fc..ee157926f6 100644 --- a/kitchen-tests/kitchen.yml +++ b/kitchen-tests/kitchen.yml @@ -16,9 +16,15 @@ provisioner: lifecycle: pre_converge: + - 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'] || %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 |