diff --git a/features/steps/run_client.rb b/features/steps/run_client.rb index cfd9bb70f84..6c295d9fb35 100644 --- a/features/steps/run_client.rb +++ b/features/steps/run_client.rb @@ -62,11 +62,14 @@ File.open(@config_file, "w") do |file| file.write(config_data) end + + @cleanup_files << @config_file @status = Chef::Mixin::Command.popen4("chef-client -c #{@config_file}") do |p, i, o, e| @stdout = o.gets(nil) @stderr = e.gets(nil) end + end