Skip to content

Commit afc83de

Browse files
authored
set subprocess ENV outside of the global context (#54)
1 parent ed1d542 commit afc83de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bin/generate-abq-test-output.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
FileUtils.rm file
77
end
88

9+
ENV['UPDATE_SNAPSHOTS'] = 'true'
910
threads = Dir['gemfiles/*.gemfile'].map do |gemfile|
1011
Thread.new do
11-
ENV['BUNDLE_GEMFILE'] = gemfile
12-
ENV['UPDATE_SNAPSHOTS'] = 'true'
13-
puts(gemfile + ":" + `bundle exec rspec spec/features/integration_spec.rb`)
12+
system({"BUNDLE_GEMFILE" => gemfile}, "bundle exec rspec spec/features/integration_spec.rb")
1413
end
1514
end
1615

1716
threads << Thread.new do
18-
ENV['UPDATE_SNAPSHOTS'] = 'true'
19-
puts(`bundle exec rspec spec/features/manifest_spec.rb`)
17+
system("bundle exec rspec spec/features/manifest_spec.rb")
2018
end
2119

2220
threads.map(&:join)

0 commit comments

Comments
 (0)