diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-26 13:54:58 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-27 13:03:20 +0200 |
commit | 15d33c2a396e4a403bc7d74cf9d1454de8393f92 (patch) | |
tree | c9689126deb71d449c5bae66fb9fb459a3ad8196 /Rakefile | |
parent | e3ade9ee5eaa512b81f3aa272dc7fa71c307c4ae (diff) | |
download | bundler-15d33c2a396e4a403bc7d74cf9d1454de8393f92.tar.gz |
Remove sudo-created files after the test themselves
Instead of creating a separate rake task. This should allow the tests to
properly clean after themselves also when not run through rake.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -97,17 +97,12 @@ namespace :spec do end desc "Run the spec suite with the sudo tests" - task :sudo => %w[set_sudo spec clean_sudo] + task :sudo => %w[set_sudo spec] task :set_sudo do ENV["BUNDLER_SUDO_TESTS"] = "1" end - task :clean_sudo do - puts "Cleaning up sudo test files..." - system "sudo rm -rf #{File.expand_path("../tmp/sudo_gem_home", __FILE__)}" - end - # RubyGems specs by version namespace :rubygems do # When editing this list, also edit .travis.yml! @@ -121,7 +116,7 @@ namespace :spec do # Create tasks like spec:rubygems:v1.8.3:sudo to run the sudo specs namespace rg do - task :sudo => ["set_sudo", rg, "clean_sudo"] + task :sudo => ["set_sudo", rg] task :realworld => ["set_realworld", rg] end @@ -139,7 +134,7 @@ namespace :spec do end namespace "co" do - task :sudo => ["set_sudo", "co", "clean_sudo"] + task :sudo => ["set_sudo", "co"] task :realworld => ["set_realworld", "co"] end |