Skip to content

Commit

Permalink
fix condition of USE_TMP_HOME
Browse files Browse the repository at this point in the history
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)
...
```
  • Loading branch information
ko1 committed Dec 10, 2023
1 parent 65519e4 commit d4feeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/console_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConsoleTestCase < TestCase
PTY.spawn({ "HOME" => pwd }, ruby, '-e', 'puts ENV["HOME"]') do |r,|
home_cannot_change = r.gets.chomp != pwd
end
home_cannot_change
!home_cannot_change
end

class << self
Expand Down

0 comments on commit d4feeae

Please sign in to comment.