1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use TEMP_DIR.

This commit is contained in:
Hiroshi SHIBATA 2019-06-02 14:18:24 +03:00
parent 4cca8c4d20
commit 8a3bd06d27

View file

@ -53,8 +53,8 @@ module Racc
def assert_debugfile(asset, ok)
file = File.basename(asset, '.y')
Dir.chdir(TEST_DIR) do
File.foreach("log/#{file}.y") do |line|
Dir.chdir(LOG_DIR) do
File.foreach("#{file}.y") do |line|
line.strip!
case line
when /sr/ then assert_equal "sr#{ok[0]}", line
@ -94,7 +94,7 @@ module Racc
end
def ruby(*arg)
assert_ruby_status(["-C", TEST_DIR, *arg])
assert_ruby_status(["-C", TEMP_DIR, *arg])
end
end
end