fix(tests): change the way test-all-plugins.py identifies the directories CTOR-1096 (#5292)

This commit is contained in:
YanMeddour 2024-11-25 12:00:06 +01:00 committed by GitHub
parent 9cee92778f
commit d73866af31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def get_tests_folders(plugin_name):
pkg_file = open("./packaging/" + plugin_name + "/pkg.json")
packaging = json.load(pkg_file)
for file in packaging["files"]: # loop on "files" array in pkg.json file.
if file.endswith("/") and os.path.exists("tests/" + file): # if this is a directory and there is test for it.
if os.path.isdir("tests/" + file): # check if the path is a directory in the "tests" folder
folder_list.append("tests/" + file)
return folder_list