Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow facter test log to be written to a file
If the FACTER_TEST_LOG environment variable is set, then use it as the log destination when running facter tests. This is borrowed from puppet's PUPPET_TEST_LOG. The test file path and line number are written so you can tell which test generated the log output: I, [2024-05-20T16:26:04.852790 #3073378] INFO -- : *** BEGIN TEST ./spec/custom_facts/core/execution_spec.rb:63 I, [2024-05-20T16:26:04.853239 #3073378] INFO -- : *** BEGIN TEST ./spec/custom_facts/core/execution_spec.rb:71 W, [2024-05-20T16:26:04.853473 #3073378] WARN -- : Facter::Core::Execution::Posix - Unexpected key passed to Facter::Core::Execution.execute option: time_limit - valid keys: on_fail,expand,logger,timeout I, [2024-05-20T16:26:04.853680 #3073378] INFO -- : *** BEGIN TEST ./spec/custom_facts/core/execution_spec.rb:71
- Loading branch information