mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 08:47:06 +02:00
Ensure to create test directory
This commit is contained in:
parent
8f01694890
commit
fdf9f4621c
@ -1,8 +1,11 @@
|
|||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :fluentd do
|
factory :fluentd do
|
||||||
|
dir = Rails.root.join("tmp/fluentd-test").to_s
|
||||||
|
FileUtils.mkdir_p(dir)
|
||||||
|
|
||||||
variant "fluentd_gem"
|
variant "fluentd_gem"
|
||||||
log_file (Rails.root + "tmp/fluentd-test/fluentd.log").to_s
|
log_file dir + "/fluentd.log"
|
||||||
pid_file (Rails.root + "tmp/fluentd-test/fluentd.pid").to_s
|
pid_file dir + "/fluentd.pid"
|
||||||
config_file (Rails.root + "tmp/fluentd-test/fluentd.conf").to_s
|
config_file dir + "/fluentd.conf"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user