Browse files

Use aruba's environment block to set the test env's PWD

This is needed to allow testing to pass due to changes introduced
in CHEF-3663.

Since the master task process executes in the project's root
directory (PWD) and Chef now looks at ENV['PWD'] for configs,
changing this per test is necessary to ensure the test can load
the supplied config that is generated in aruba's `current_dir`.
  • Loading branch information...
miketheman committed Aug 11, 2013
1 parent 5765be0 commit fc9ef3f323425f43ca75f99cebcaaf33b19a9c14
Showing with 4 additions and 0 deletions.
  1. +4 −0 features/support/env.rb
@@ -4,6 +4,10 @@

Before do
@aruba_timeout_seconds = 5

# Set the env var PWD to aruba's working directory, instead of inheriting
# the main process's PWD. See CHEF-3663 for why this changed in Chef 11.
ENV['PWD'] = File.expand_path current_dir

After do |s|

0 comments on commit fc9ef3f

Please sign in to comment.