1
0
Fork 0
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:
Nobuyoshi Nakada 2021-10-10 18:30:33 +09:00
parent e2017f8c7c
commit fb9ea391cf
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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