mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
Add helper to filter out deprecations on stderr
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
f1cc0b0477
commit
aa19b6e99d
1 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,14 @@ module Inspec
|
||||||
msg += "\nSTDERR:\n" + stderr
|
msg += "\nSTDERR:\n" + stderr
|
||||||
msg.must_equal ''
|
msg.must_equal ''
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stderr_ignore_deprecations
|
||||||
|
stderr.split("\n").reject { |l| l.include? ' DEPRECATION: ' }.join("\n")
|
||||||
|
end
|
||||||
|
|
||||||
|
def stdout_ignore_deprecations
|
||||||
|
stdout.split("\n").reject { |l| l.include? ' DEPRECATION: ' }.join("\n")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue