summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-12 16:36:41 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-13 09:23:07 -0800
commit58f40acd2399114fc1752a0169c552fcfe507fc5 (patch)
tree7872fd8cb9c8cb6cf9659c47fe7982667238aa62
parentb698c86bff0d031574e610a8c6e5243d9e5aeac7 (diff)
downloadchef-jk/chef-fs-split.tar.gz
Make external tests work locally betterjk/chef-fs-split
-rw-r--r--tasks/external_tests.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/external_tests.rb b/tasks/external_tests.rb
index 69c0712a12..6742d3f88d 100644
--- a/tasks/external_tests.rb
+++ b/tasks/external_tests.rb
@@ -26,8 +26,8 @@ def bundle_exec_with_chef(test_gem, commands)
gemfile.close
Dir.chdir(gem_path) do
Bundler.with_clean_env do
- unless system({ 'RUBYOPT' => nil, 'GEMFILE_MOD' => nil }, "bundle install --gemfile #{gemfile_path}")
- raise "Error running bundle install --gemfile #{gemfile_path} in #{gem_path}: #{$?.exitstatus}\nGemfile:\n#{IO.read(gemfile_path)}"
+ unless system({ 'BUNDLE_GEMFILE' => gemfile_path, 'RUBYOPT' => nil, 'GEMFILE_MOD' => nil }, "bundle update")
+ raise "Error running bundle update of #{gemfile_path} in #{gem_path}: #{$?.exitstatus}\nGemfile:\n#{IO.read(gemfile_path)}"
end
Array(commands).each do |command|
unless system({ 'BUNDLE_GEMFILE' => gemfile_path, 'RUBYOPT' => nil, 'GEMFILE_MOD' => nil }, "bundle exec #{command}")