mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Merge pull request #4454 from JaredReisinger/remove-external-facts
Don't look for external facts when benchmarking
This commit is contained in:
commit
ff35ea87fb
1 changed files with 3 additions and 2 deletions
|
@ -219,6 +219,9 @@ begin
|
||||||
|
|
||||||
puts "Your Results: (note for timings- percentile is first, duration is second in millisecs)"
|
puts "Your Results: (note for timings- percentile is first, duration is second in millisecs)"
|
||||||
|
|
||||||
|
# Prevent using external facts because it breaks when running in the
|
||||||
|
# discourse/discourse_bench docker container.
|
||||||
|
Facter::Util::Config.external_facts_dirs = []
|
||||||
facts = Facter.to_hash
|
facts = Facter.to_hash
|
||||||
|
|
||||||
facts.delete_if{|k,v|
|
facts.delete_if{|k,v|
|
||||||
|
@ -270,8 +273,6 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# TODO include Facter.to_hash ... for all facts
|
|
||||||
ensure
|
ensure
|
||||||
Process.kill "KILL", pid
|
Process.kill "KILL", pid
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue