mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Default the test order to random
This commit is contained in:
parent
e2017f8c7c
commit
fb9ea391cf
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ module Test
|
||||||
order = options[:test_order]
|
order = options[:test_order]
|
||||||
if seed = options[:seed]
|
if seed = options[:seed]
|
||||||
order ||= :random
|
order ||= :random
|
||||||
elsif order == :random
|
elsif (order ||= :random) == :random
|
||||||
seed = options[:seed] = rand(0x10000)
|
seed = options[:seed] = rand(0x10000)
|
||||||
orig_args.unshift "--seed=#{seed}"
|
orig_args.unshift "--seed=#{seed}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue