Skip to content

Commit d73866a

Browse files
authored
fix(tests): change the way test-all-plugins.py identifies the directories CTOR-1096 (centreon#5292)
1 parent 9cee927 commit d73866a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/test-all-plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_tests_folders(plugin_name):
1111
pkg_file = open("./packaging/" + plugin_name + "/pkg.json")
1212
packaging = json.load(pkg_file)
1313
for file in packaging["files"]: # loop on "files" array in pkg.json file.
14-
if file.endswith("/") and os.path.exists("tests/" + file): # if this is a directory and there is test for it.
14+
if os.path.isdir("tests/" + file): # check if the path is a directory in the "tests" folder
1515
folder_list.append("tests/" + file)
1616
return folder_list
1717

0 commit comments

Comments
 (0)