diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-12 11:50:59 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-12 17:04:18 -0700 |
commit | c135ff35beab68c46bdb0c69925bae8dab736eaa (patch) | |
tree | 414b171e6fe8db5bdcc237f2ec204aff6d1ba044 | |
parent | 953ddf7842f4eb3a462c3a2801aa9ccb0175fa72 (diff) | |
download | chef-c135ff35beab68c46bdb0c69925bae8dab736eaa.tar.gz |
Freebsd stuff
-rw-r--r-- | spec/functional/resource/user/useradd_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functional/resource/user/useradd_spec.rb b/spec/functional/resource/user/useradd_spec.rb index ceae81aab9..d58247412f 100644 --- a/spec/functional/resource/user/useradd_spec.rb +++ b/spec/functional/resource/user/useradd_spec.rb @@ -82,7 +82,11 @@ describe Chef::Provider::User::Useradd, metadata do shell_out("rm", "-r", f) end ['cf-test'].each do |u| - shell_out("userdel", "-r", username) + if RUBY_PLATFORM =~ /freebsd/ + shell_out("pw", "userdel", "-r", username) + else + shell_out("userdel", "-r", username) + end end end |