From f7048f9d55bb6c5ad656950a5e0c3550465d08c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Mon, 2 Mar 2020 15:50:22 +0900 Subject: [PATCH] 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. --- tool/lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|