diff options
author | sersut <serdar@opscode.com> | 2013-10-21 10:44:43 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-10-21 16:14:44 -0700 |
commit | ab49a996da6735b45b0790a5dc148e3b544d5a95 (patch) | |
tree | 9221cb083083d701d4727819d3e7d58162ec732b /spec/integration/solo | |
parent | a17565675e992f62404da051ce5136b0c02999b4 (diff) | |
download | chef-ab49a996da6735b45b0790a5dc148e3b544d5a95.tar.gz |
Make sure the bundle command is executed from the correct dir. Use bundle exec while launching chef-solo in functional tests as well.
Diffstat (limited to 'spec/integration/solo')
-rw-r--r-- | spec/integration/solo/solo_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/integration/solo/solo_spec.rb b/spec/integration/solo/solo_spec.rb index 215c110d3e..0d08bf57cc 100644 --- a/spec/integration/solo/solo_spec.rb +++ b/spec/integration/solo/solo_spec.rb @@ -18,8 +18,8 @@ describe "chef-solo" do cookbook_path "#{path_to('cookbooks')}" file_cache_path "#{path_to('config/cache')}" EOM - chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "bin") - result = shell_out("chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' -l debug", :cwd => chef_dir) + chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..") + result = shell_out("bundle exec chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' -l debug", :cwd => chef_dir) result.error! end end @@ -45,17 +45,17 @@ EOM # run_lock gets stuck we can discover it. lambda { Timeout.timeout(120) do - chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "bin") + chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..") # Instantiate the first chef-solo run - s1 = Process.spawn("chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' \ + s1 = Process.spawn("bundle exec chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' \ -l debug -L #{path_to('logs/runs.log')}", :chdir => chef_dir) # Give it some time to progress sleep 1 # Instantiate the second chef-solo run - s2 = Process.spawn("chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' \ + s2 = Process.spawn("bundle exec chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' \ -l debug -L #{path_to('logs/runs.log')}", :chdir => chef_dir) Process.waitpid(s1) |