File: debug.rb

package info (click to toggle)
facter 4.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,276 kB
  • sloc: ruby: 64,130; sh: 48; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# This test is intended to ensure that the --debug command-line option works
# properly. This option prints debugging information to stderr.
test_name "C63191: --debug command-line option prints debugging information to stderr" do

  agents.each do |agent|
    step "Agent #{agent}: retrieve debug info from stderr using --debug option" do
      on(agent, facter('--debug')) do |facter_output|
        assert_match(/DEBUG/, facter_output.stderr, "Expected DEBUG information in stderr")
      end
    end
  end
end