summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-12-09 14:22:08 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-12-09 14:22:08 -0800
commitc3a9c3064124bdc2c0012ce806285bb626a64436 (patch)
tree81fed2d059f8ccc6ed57ee106dea0c7ba9bfba89
parent22fef17e632a22908aaa5548e2dd35f9cc448a52 (diff)
downloadchef-c3a9c3064124bdc2c0012ce806285bb626a64436.tar.gz
correctly remove PWDsolaris
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/integration/client/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index d95b75d8c5..ebde310eaf 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -98,7 +98,7 @@ describe "chef-client" do
it "should load .chef/knife.rb when -z is specified" do
# On Solaris shell_out will invoke /bin/sh which doesn't understand how to correctly update ENV['PWD']
- result = shell_out("#{chef_client} -z -o 'x::default'", cwd: path_to(""), env: {})
+ result = shell_out("#{chef_client} -z -o 'x::default'", cwd: path_to(""), env: { "PWD" => nil })
# FATAL: Configuration error NoMethodError: undefined method `xxx' for nil:NilClass
expect(result.stdout).to include("xxx")
end