mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
clears robot.txt
after tests
This commit is contained in:
parent
29dd8ab9c0
commit
1b2e4a0ae0
|
@ -7,7 +7,16 @@ defmodule Pleroma.InstanceTest do
|
||||||
|
|
||||||
setup do
|
setup do
|
||||||
File.mkdir_p!(tmp_path())
|
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
|
:ok
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue