mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Disable audit log in test environment unless and until explicitly --enable-audit-log option is provided in test
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
This commit is contained in:
parent
e6f430b2fa
commit
5be4096bb3
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,8 @@ module FunctionalHelper
|
|||
end
|
||||
|
||||
def inspec(commandline, prefix = nil)
|
||||
# Turn off audit logs in test environment unless and until the --enable-audit-log options is provided in test
|
||||
commandline += " --no-enable-audit-log" if (commandline.match?(/exec/) || commandline.match?(/shell/)) && !commandline.match?(/--enable-audit-log/)
|
||||
run_cmd "#{exec_inspec} #{commandline}", prefix
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue