mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
sudo
This commit is contained in:
parent
ec8ee25028
commit
689920bf9a
1 changed files with 1 additions and 0 deletions
1
Rakefile
1
Rakefile
|
@ -54,6 +54,7 @@ namespace :test do
|
|||
#sh_cmd = "cd #{path} && target=#{args[:target]} key_files=#{key_files}"
|
||||
sh_cmd = "bin/inspec exec #{tests_path}/"
|
||||
sh_cmd += ENV['test'] ? "#{ENV['test']}_spec.rb" : '*'
|
||||
sh_cmd += " --sudo" unless args[:target].split('@')[0] == 'root'
|
||||
sh_cmd += " -t ssh://#{args[:target]}"
|
||||
sh_cmd += " --key_files=#{key_files}"
|
||||
sh_cmd += " --format=#{ENV['format']}" if ENV['format']
|
||||
|
|
Loading…
Reference in a new issue