From 23f9c16aaabe3cc9312306f68563aa5ac1377fc4 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 28 Mar 2017 08:59:58 -0400 Subject: [PATCH] =?UTF-8?q?Another=20round=20of=20fixing=20things=20that?= =?UTF-8?q?=20the=20stylizer=20=E2=80=9Ccorrected=E2=80=9D=20for=20me.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extras/fixture/rakefile_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/fixture/rakefile_helper.rb b/extras/fixture/rakefile_helper.rb index 09b2d15..de753b1 100644 --- a/extras/fixture/rakefile_helper.rb +++ b/extras/fixture/rakefile_helper.rb @@ -16,7 +16,7 @@ module RakefileHelpers def load_configuration(config_file) unless $configured $cfg_file = HERE + "../../test/targets/#{config_file}" unless config_file =~ /[\\|\/]/ - $cfg = YAML.safe_load(File.read($cfg_file)) + $cfg = YAML.load(File.read($cfg_file)) $colour_output = false unless $cfg['colour'] $configured = true if config_file != DEFAULT_CONFIG_FILE end @@ -120,7 +120,7 @@ module RakefileHelpers report command_string output = `#{command_string}`.chomp report(output) if verbose && !output.nil? && !output.empty? - raise "Command failed. (Returned #{$CHILD_STATUS.exitstatus})" if $CHILD_STATUS.exitstatus != 0 + raise "Command failed. (Returned #{$?.exitstatus})" if $?.exitstatus != 0 output end -- GitLab