mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
fix(tests): change the way test-all-plugins.py identifies the directories CTOR-1096 (#5292)
This commit is contained in:
parent
9cee92778f
commit
d73866af31
2
.github/scripts/test-all-plugins.py
vendored
2
.github/scripts/test-all-plugins.py
vendored
@ -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…
x
Reference in New Issue
Block a user