diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2015-09-01 22:00:40 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2015-09-01 22:00:40 -0700 |
commit | 30ff3159f1d8d4c4a704241fa76b9b75f62c2663 (patch) | |
tree | 0db2422de7ed2a71ea6063576fb96541b3450991 | |
parent | 4c10ab73872c88626392412529abcc3d4e3974bf (diff) | |
download | chef-30ff3159f1d8d4c4a704241fa76b9b75f62c2663.tar.gz |
Lots of tests leak the log level so just fix it here.
-rw-r--r-- | spec/functional/knife/ssh_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/functional/knife/ssh_spec.rb b/spec/functional/knife/ssh_spec.rb index 1c56cce9c2..51524b7009 100644 --- a/spec/functional/knife/ssh_spec.rb +++ b/spec/functional/knife/ssh_spec.rb @@ -36,6 +36,17 @@ describe Chef::Knife::Ssh do allow(Net::SSH).to receive(:configuration_for).and_return(ssh_config) end + # Force log level to info. + around do |ex| + old_level = Chef::Log.level + begin + Chef::Log.level = :info + ex.run + ensure + Chef::Log.level = old_level + end + end + describe "identity file" do context "when knife[:ssh_identity_file] is set" do before do |