Skip to content

Commit d4feeae

Browse files
committed
fix condition of USE_TMP_HOME
Use tmp home if home can be changed. fix https://github.com/ruby/actions/actions/runs/7164065566/job/19503611173 ``` > /home/runner/work/actions/actions/ruby-3.3.0-rc1/lib/irb/history.rb:62:in `initialize': Permission denied @ rb_sysopen - /home/runner/.irb_history (Errno::EACCES) ... ```
1 parent 65519e4 commit d4feeae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/console_test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ConsoleTestCase < TestCase
2121
PTY.spawn({ "HOME" => pwd }, ruby, '-e', 'puts ENV["HOME"]') do |r,|
2222
home_cannot_change = r.gets.chomp != pwd
2323
end
24-
home_cannot_change
24+
!home_cannot_change
2525
end
2626

2727
class << self

0 commit comments

Comments
 (0)