lib/inspec/runner.rb in inspec-2.0.17 vs lib/inspec/runner.rb in inspec-2.0.32

- old
+ new

@@ -127,11 +127,12 @@ File.write(profile.lockfile_path, lockfile.to_yaml) end end def run_tests(with = nil) - run_data = @test_collector.run(with) - render_output(run_data) + @run_data = @test_collector.run(with) + # dont output anything if we want a report + render_output(@run_data) unless @conf['report'] @test_collector.exit_code end # determine all attributes before the execution, fetch data from secrets backend def load_attributes(options)