From 908f8fffa2df19fa1b2fbd674149644e61e55e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 16 Oct 2023 21:06:36 +0200 Subject: [PATCH] [rubygems/rubygems] Don't hide original error in `after(:suite)` hook For some reason, Windows builds are failing quite consistently now. However, it seems that errors are happening before this directory is even created, so removal fails, hiding the original error. Instead, don't let this removal fail due to files not existing. https://github.com/rubygems/rubygems/commit/7669d6c96e --- spec/bundler/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/spec_helper.rb b/spec/bundler/spec_helper.rb index 6a7e2891a6..d3a92d84b2 100644 --- a/spec/bundler/spec_helper.rb +++ b/spec/bundler/spec_helper.rb @@ -114,6 +114,6 @@ RSpec.configure do |config| end config.after :suite do - FileUtils.rm_r Spec::Path.pristine_system_gem_path + FileUtils.rm_rf Spec::Path.pristine_system_gem_path end end