Skip to content

Commit c6abdae

Browse files
committed
Revert "[ruby/rubygems] Revert "Merge pull request #8989 from nobu/test-tmpdir""
This reverts commit 6e00da098abacd8c9ef0ea621cb1832e654b1813.
1 parent dd65b8a commit c6abdae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundler/spec/support/path.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def tmp(*path)
114114
end
115115

116116
def tmp_root
117-
source_root.join("tmp")
117+
ruby_core? && (tmpdir = ENV["TMPDIR"]) ? Pathname(tmpdir) : source_root.join("tmp")
118118
end
119119

120120
# Bump this version whenever you make a breaking change to the spec setup

bundler/spec/support/rubygems_ext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_setup
4343
# sign extension bundles on macOS, to avoid trying to find the specified key
4444
# from the fake $HOME/Library/Keychains directory.
4545
ENV.delete "RUBY_CODESIGN"
46-
ENV["TMPDIR"] = Path.tmpdir.to_s
46+
ENV["TMPDIR"] = Path.tmpdir.to_s unless Path.ruby_core?
4747

4848
require "rubygems/user_interaction"
4949
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new

0 commit comments

Comments
 (0)