summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-13 15:30:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-13 15:30:58 +0900
commiteb221a37349806bc202dbea2c088754c674605fc (patch)
treef95e8a7f36b2f272cc1ebc61d6abedd4a2984fb9 /tool/sync_default_gems.rb
parent83718b6bb299c483e60a638ccce98bc8ae1665a1 (diff)
Prohibit copying to `fixtures` and dot-direcotry just under `test`
Do not add directories which would let chkbuild fires accidentally, to just under `test`. The "fixtures" directory is often used to place test stuffs.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8214
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index a7785a989c..d2c17f35af 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -600,7 +600,7 @@ module SyncDefaultGems
puts "Remove files added to toplevel: #{toplevels.join(', ')}"
system(*%w"git rm -r --", *toplevels)
end
- tools = changed.select {|f|f.start_with?("test/lib/", "tool/")}
+ tools = changed.select {|f|f.start_with?("test/fixtures/", "test/lib/", "tool/")}
unless tools.empty?
system(*%W"git rm -r --", *tools)
system(*%W"git checkout HEAD~ --", *tools)