Skip to content

Commit

Permalink
use env variable instead of constant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max committed Jul 5, 2021
1 parent 90196f3 commit fd560c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def debug_code(program, boot_options: '-r debug/run', remote: true, &block)
end
end

DEBUG_MODE = false
ENV['RUBY_DEBUG_TEST_DEBUG_MODE'] ||= 'false'
ASK_CMD = %w[quit delete kill undisplay]

def debug_print msg
print msg if DEBUG_MODE
print msg unless ENV['RUBY_DEBUG_TEST_DEBUG_MODE'] == 'false'
end

RUBY = RbConfig.ruby
Expand Down

0 comments on commit fd560c5

Please sign in to comment.