Sha256: 1ce245231e8f9cf960a581d567ebcf9704312a730fc2cd50906a7a4cefa948be
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
# This test is intended to ensure that the --help command-line option works # properly. This option prints usage information and available command-line # options. test_name "C99984: --help command-line option prints usage information to stdout" do agents.each do |agent| step "Agent #{agent}: retrieve usage info from stdout using --help option" do on(agent, facter('--help')) do assert_match(/(facter|facter-ng) \[options\] \[query\] \[query\] \[...\]/, stdout, "Expected stdout to contain usage information") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.29 | acceptance/tests/options/help.rb |
facter-4.0.28 | acceptance/tests/options/help.rb |