Skip to content

Commit 5133cc8

Browse files
committed
remote debuggees needs temporary HOME
1 parent ac5fc97 commit 5133cc8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/support/test_case.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ def kill_remote_debuggee test_info
145145
end
146146

147147
def setup_remote_debuggee(cmd)
148-
remote_info = DEBUGGER__::TestCase::RemoteInfo.new(*PTY.spawn(cmd))
148+
homedir = defined?(self.class.pty_home_dir) ? self.class.pty_home_dir : ENV['HOME']
149+
150+
remote_info = DEBUGGER__::TestCase::RemoteInfo.new(*PTY.spawn({'HOME' => homedir}, cmd))
149151
remote_info.r.read(1) # wait for the remote server to boot up
150152
remote_info.debuggee_backlog = []
151153

0 commit comments

Comments
 (0)