projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29dd8ab
)
clears `robot.txt` after tests
author
Maksim Pechnikov
<parallel588@gmail.com>
Wed, 25 Sep 2019 10:13:35 +0000
(13:13 +0300)
committer
Maksim Pechnikov
<parallel588@gmail.com>
Wed, 25 Sep 2019 10:27:31 +0000
(13:27 +0300)
test/tasks/instance_test.exs
patch
|
blob
|
history
diff --git
a/test/tasks/instance_test.exs
b/test/tasks/instance_test.exs
index 70986374eda7b611da94c40f5ba6c2eed7690fc3..a3b0dcb50a15b724d420c1d64005509c265ba0dd 100644
(file)
--- a/
test/tasks/instance_test.exs
+++ b/
test/tasks/instance_test.exs
@@
-7,7
+7,16
@@
defmodule Pleroma.InstanceTest do
setup do
File.mkdir_p!(tmp_path())
- on_exit(fn -> File.rm_rf(tmp_path()) end)
+
+ on_exit(fn ->
+ File.rm_rf(tmp_path())
+ static_dir = Pleroma.Config.get([:instance, :static_dir], "instance/static/")
+
+ if File.exists?(static_dir) do
+ File.rm_rf(Path.join(static_dir, "robots.txt"))
+ end
+ end)
+
:ok
end