diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-01-24 13:28:02 -0300 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-18 20:54:06 +0900 |
commit | 23007cb107169ab2d330522736c7df0a97f64388 (patch) | |
tree | 78d110ce574422653dfc2e23c237d708ab3a1e4c /spec/support/path.rb | |
parent | 84b9238affcc6196aa0164fd48a8c77d537702d6 (diff) | |
download | bundler-23007cb107169ab2d330522736c7df0a97f64388.tar.gz |
Parallelize test suite
Diffstat (limited to 'spec/support/path.rb')
-rw-r--r-- | spec/support/path.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb index 14c1514291..7cbaf9f055 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -38,7 +38,14 @@ module Spec end def tmp(*path) - root.join("tmp", *path) + root.join("tmp", scope, *path) + end + + def scope + test_number = ENV["TEST_ENV_NUMBER"] + return "" if test_number.nil? + + test_number.empty? ? "1" : test_number end def home(*path) |