mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Fix paths to toml files (missing /)
This commit is contained in:
parent
f3b8c6b2aa
commit
8227927c77
1 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue