fix(tests): change the way test-all-plugins.py identifies the directories CTOR-1096 (#5292)
This commit is contained in:
parent
9cee92778f
commit
d73866af31
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue