summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-03-02 15:50:22 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-04 12:30:42 +0900
commitf7048f9d55bb6c5ad656950a5e0c3550465d08c4 (patch)
tree0fd6019a2e8a4c65db7a5f5b5fa8543ce21a6f5b /tool
parentf12b9a33382bf1f54b4f599f00fa83efa8b1a245 (diff)
tool/lib/test/unit: support TESTS='-- -ext-' again
There is a test directory named test/-ext-. Because this directry starts with a hyphen, we have to cheat test/unit in order for it to run the tests underneath. TESTS='-- -ext' worked for a long time. Let's not break that maneuver.
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 130fcf07e1..376ca8d3d4 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -70,7 +70,7 @@ module Test
else
seed = options[:seed] = srand % 100_000
srand(seed)
- orig_args << "--seed=#{seed}"
+ orig_args.unshift "--seed=#{seed}"
end
@help = "\n" + orig_args.map { |s|