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]
|
||||
if seed = options[:seed]
|
||||
order ||= :random
|
||||
elsif order == :random
|
||||
elsif (order ||= :random) == :random
|
||||
seed = options[:seed] = rand(0x10000)
|
||||
orig_args.unshift "--seed=#{seed}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue