You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppet's test helper calls `initialize_app_defaults` before each test, which
calls all hooks of type `on_initialize_and_write`[1]. So we were requiring two
files unnecessarily about 26k times, which is really slow on Windows. Also we
were appending 2 paths to Facter's search path for each test in an unbounded
way. Note vardir is different for each test, so it's not possible to only add
paths we haven't seen before.
Note puppet.rb already required `puppet/node` outside the hook, so this just
adds a require for `puppet/node/facts`.
For loglevel, made the setter idempotent if the level is unchanged. Also avoid
scanning the array of log levels twice if an invalid level is given.
[1] https://github.com/puppetlabs/puppet/blob/7.11.0/lib/puppet/settings.rb#L390
0 commit comments