summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-08-24 08:43:48 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-08-24 08:43:48 -0700
commit834ef1b18ac88c1c848ee768a0a770eeb793f7b7 (patch)
tree1b5a148292792bd3cc6715d3ba15cb05d4f44c32 /spec
parente9d79566bd7b84f35db9a6cb0a8e7f8609c00195 (diff)
downloadchef-834ef1b18ac88c1c848ee768a0a770eeb793f7b7.tar.gz
remove homedirs not owned by user
userdel -r will not remove a homedir not owned by the user, have to manually rm -rf it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/functional/resource/user/useradd_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/user/useradd_spec.rb b/spec/functional/resource/user/useradd_spec.rb
index dadf696185..79d62436f5 100644
--- a/spec/functional/resource/user/useradd_spec.rb
+++ b/spec/functional/resource/user/useradd_spec.rb
@@ -88,7 +88,7 @@ describe Chef::Provider::User::Useradd, metadata do
end
def try_cleanup
- ["/home/cheftestfoo", "/home/cheftestbar"].each do |f|
+ ["/home/cheftestfoo", "/home/cheftestbar", "/home/cf-test"].each do |f|
FileUtils.rm_rf(f) if File.exists? f
end