summaryrefslogtreecommitdiff
path: root/test/rake
diff options
context:
space:
mode:
Diffstat (limited to 'test/rake')
-rw-r--r--test/rake/test_rake_application_options.rb2
-rw-r--r--test/rake/test_rake_file_utils.rb5
2 files changed, 7 insertions, 0 deletions
diff --git a/test/rake/test_rake_application_options.rb b/test/rake/test_rake_application_options.rb
index 19142405909..250302685dd 100644
--- a/test/rake/test_rake_application_options.rb
+++ b/test/rake/test_rake_application_options.rb
@@ -7,6 +7,7 @@ class TestRakeApplicationOptions < Rake::TestCase
def setup
super
+ @testkey = ENV['TESTKEY']
clear_argv
Rake::FileUtilsExt.verbose_flag = false
Rake::FileUtilsExt.nowrite_flag = false
@@ -14,6 +15,7 @@ class TestRakeApplicationOptions < Rake::TestCase
end
def teardown
+ ENV['TESTKEY'] = @testkey
clear_argv
Rake::FileUtilsExt.verbose_flag = false
Rake::FileUtilsExt.nowrite_flag = false
diff --git a/test/rake/test_rake_file_utils.rb b/test/rake/test_rake_file_utils.rb
index 37d33dc39a1..90e01dfbf86 100644
--- a/test/rake/test_rake_file_utils.rb
+++ b/test/rake/test_rake_file_utils.rb
@@ -3,10 +3,15 @@ require 'fileutils'
require 'stringio'
class TestRakeFileUtils < Rake::TestCase
+ def setup
+ super
+ @rake_test_sh = ENV['RAKE_TEST_SH']
+ end
def teardown
FileUtils::LN_SUPPORTED[0] = true
RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
+ ENV['RAKE_TEST_SH'] = @rake_test_sh
super
end