diff --git a/tests/test.d/simple_test.rb b/tests/test.d/simple_test.rb index d3f39e9a5..9dba314b2 100644 --- a/tests/test.d/simple_test.rb +++ b/tests/test.d/simple_test.rb @@ -249,6 +249,7 @@ class SimpleTest command << " >#{temp_file.path} 2>&1 " end + puts "COMMAND #{command}" if ENV['DEBUG'] self.error "system command failed: #{command} (#{$? >> 8})" if !system(command) && (options[:exit_code] != ($? >> 8)) return IO.readlines(temp_file.path) if temp_file diff --git a/tests/test.d/test.rb b/tests/test.d/test.rb index 01492b199..5a89e1e9f 100644 --- a/tests/test.d/test.rb +++ b/tests/test.d/test.rb @@ -64,6 +64,7 @@ class Test @debug_commands << command command << " >/dev/null 2>/dev/null " unless (/>/.match(command)) + puts "COMMAND #{command}" if ENV['DEBUG'] error "system command failed: #{command} (" + ($? >> 8).to_s + ")" if !system(command) && ((arg.size == 0) || ((arg[0] << 8) != $?)) end