[前][次][番号順一覧][スレッド一覧]

ruby-changes:60284

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Wed, 4 Mar 2020 12:31:15 +0900 (JST)
Subject: [ruby-changes:60284] f7048f9d55 (master): tool/lib/test/unit: support TESTS='-- -ext-' again

https://git.ruby-lang.org/ruby.git/commit/?id=f7048f9d55

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?=
 <shyouhei@r...>
Date: Mon, 2 Mar 2020 15:50:22 +0900
Subject: 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.

diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 130fcf0..376ca8d 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -70,7 +70,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L70
         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|
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]