BUG/MINOR: reg-tests: fix service dependency script

I badly tested my previous patch forgetting to remove the "+" testing
present in options, and not in services; the list of services do not
have any "+" at the beginning of each service

this patch is fixing commit aabde71332 ("MINOR:
reg-tests: add a way to add service dependency")

Signed-off-by: William Dauchy <wdauchy@gmail.com>
This commit is contained in:
William Dauchy 2021-01-10 21:13:05 +01:00 committed by Christopher Faulet
parent e997010acc
commit 4488434c97
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ _findtests() {
alternatives=$(echo "$requiredservice" | sed -e 's/|/ /g') alternatives=$(echo "$requiredservice" | sed -e 's/|/ /g')
found= found=
for alt in $alternatives; do for alt in $alternatives; do
if echo "$SERVICES" | grep -qw "\+$alt"; then if echo "$SERVICES" | grep -qw "$alt"; then
found=1; found=1;
fi fi
done done