spec/support/knife_support.rb in knife-essentials-0.9.8 vs spec/support/knife_support.rb in knife-essentials-1.0.0.beta1

- old
+ new

@@ -13,10 +13,13 @@ # names with spaces are always multiple args, this is safe.) if args.length == 1 args = args[0].split(/\s+/) end + # Make output stable + Chef::Config[:concurrency] = 1 + # This is Chef::Knife.run without load_commands and load_deps--we'll # load stuff ourselves, thank you very much stdout = StringIO.new stderr = StringIO.new old_loggers = Chef::Log.loggers @@ -36,9 +39,10 @@ logger = Logger.new(stderr) logger.formatter = proc { |severity, datetime, progname, msg| "#{severity}: #{msg}\n" } Chef::Log.use_log_devices([logger]) Chef::Log.level = ( DEBUG ? :debug : :warn ) Chef::Log::Formatter.show_time = false + instance.run exit_code = 0 # This is how rspec catches exit()