From c135ff35beab68c46bdb0c69925bae8dab736eaa Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Thu, 12 Mar 2015 11:50:59 -0700 Subject: Freebsd stuff --- spec/functional/resource/user/useradd_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1