summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 14:02:42 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commit0e2d8c487c42aa311d329d1f44963cf002e0e598 (patch)
treeb57d5ac8d4f8d69cead6d220c384a33fc17ab5d2
parentaa4ecfe7f7e69a2c477dd9e0cc8ffbe482bbe4cb (diff)
[rubygems/rubygems] unset XDG_* environmental variables for testing of rubygems.
https://github.com/rubygems/rubygems/commit/539fd9a39a
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
-rw-r--r--lib/rubygems/test_case.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index 69f6e6d..7bf7142 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -296,6 +296,9 @@ class Gem::TestCase < Minitest::Test
ENV['GEM_VENDOR'] = nil
ENV['GEMRC'] = nil
+ ENV['XDG_CACHE_HOME'] = nil
+ ENV['XDG_CONFIG_HOME'] = nil
+ ENV['XDG_DATA_HOME'] = nil
ENV['SOURCE_DATE_EPOCH'] = nil
ENV["TMPDIR"] = @tmp