2
This commit is contained in:
@@ -40,3 +40,15 @@ registry_module_path() {
|
||||
local module_id="$1"
|
||||
printf '%s\n' "${REGISTRY_MODULE_PATHS[$module_id]:-}"
|
||||
}
|
||||
|
||||
registry_module_test_path() {
|
||||
local module_id="$1"
|
||||
local module_path=""
|
||||
|
||||
module_path="${REGISTRY_MODULE_PATHS[$module_id]:-}"
|
||||
if [[ -z "$module_path" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
printf '%s\n' "${module_path%/module.sh}/tests.sh"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user