1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/ci_functions.sh: Fix typos and improve the comment. [ci skip]

This commit is contained in:
Jun Aruga 2021-05-31 16:21:10 +02:00 committed by Jun Aruga
parent 3954799071
commit ff6f4e631c
Notes: git 2021-05-31 23:24:35 +09:00

View file

@ -7,7 +7,7 @@
# See `ruby tool/test/runner.rb --help` `-n` option.
function ci_to_excluded_test_opts {
local tests_str="${1}"
# Use the backward matching `!/name$/`, as the perfect matching does not work.
# Use the backward matching `!/name$/`, as the perfect matching doesn't work.
# https://bugs.ruby-lang.org/issues/16936
ruby <<EOF
opts = "${tests_str}".split.map { |test| "-n \!/#{test}\$$/" }
@ -16,7 +16,7 @@ EOF
return 0
}
# Create options with patterns `-n /name1/ -n /name2/ ..` to exclude the test
# Create options with patterns `-n name1 -n name2 ..` to include the test
# method names by the method names `name1 name2 ..`.
# See `ruby tool/test/runner.rb --help` `-n` option.
function ci_to_included_test_opts {