Skip to content

Commit

Permalink
Merge pull request #35 from hsbt/avoid-always-under-bundler
Browse files Browse the repository at this point in the history
Set bundler environmental variables when they are provided
  • Loading branch information
ilyazub authored May 26, 2023
2 parents 586f3ed + 2daa4bd commit 2f0f152
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
turbo_tests (2.0.0)
turbo_tests (2.1.0)
bundler (>= 2.1)
parallel_tests (>= 3.3.0, < 5)
rspec (>= 3.10)
Expand Down
3 changes: 2 additions & 1 deletion lib/turbo_tests/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,15 @@ def start_subprocess(env, extra_args, tests, process_id, record_runtime:)
end

command = [
ENV["BUNDLE_BIN_PATH"], "exec", "rspec",
"rspec",
*extra_args,
"--seed", rand(0xFFFF).to_s,
"--format", "TurboTests::JsonRowsFormatter",
"--out", tmp_filename,
*record_runtime_options,
*tests
]
command.unshift(ENV["BUNDLE_BIN_PATH"], "exec") if ENV["BUNDLE_BIN_PATH"]

if @verbose
command_str = [
Expand Down
2 changes: 1 addition & 1 deletion lib/turbo_tests/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TurboTests
VERSION = "2.0.0"
VERSION = "2.1.0"
end

0 comments on commit 2f0f152

Please sign in to comment.