summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-09-01 22:00:40 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-09-01 22:00:40 -0700
commit30ff3159f1d8d4c4a704241fa76b9b75f62c2663 (patch)
tree0db2422de7ed2a71ea6063576fb96541b3450991
parent4c10ab73872c88626392412529abcc3d4e3974bf (diff)
downloadchef-30ff3159f1d8d4c4a704241fa76b9b75f62c2663.tar.gz
Lots of tests leak the log level so just fix it here.
-rw-r--r--spec/functional/knife/ssh_spec.rb11
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