Fix paths to toml files (missing /)

This commit is contained in:
Salamandar 2024-06-10 00:10:35 +02:00
parent f3b8c6b2aa
commit 8227927c77

View file

@ -769,16 +769,16 @@ class App(TestSuite):
@test()
def config_panel(app):
if file_exists(app.path + "config_panel.json"):
if file_exists(app.path + "/config_panel.json"):
yield Error(
"JSON config panels are not supported anymore, should be replaced by a toml version"
)
if file_exists(app.path + "config_panel.toml"):
if file_exists(app.path + "/config_panel.toml"):
if (
os.system(
"grep -q 'version = \"0.1\"' '%s'"
% (app.path + "config_panel.toml")
% (app.path + "/config_panel.toml")
)
== 0
):
@ -800,7 +800,7 @@ class App(TestSuite):
validate_schema(
"config_panel",
config_panel_v1_schema(),
toml.load(app.path + "config_panel.toml"),
toml.load(app.path + "/config_panel.toml"),
)
@test()
@ -1218,7 +1218,7 @@ class Configurations(TestSuite):
)
else:
validate_schema(
"tests.toml", tests_v1_schema(), toml.load(app.path + "tests.toml")
"tests.toml", tests_v1_schema(), toml.load(app.path + "/tests.toml")
)
@test()