diff options
Diffstat (limited to 'tests/enumerate-tests')
-rwxr-xr-x | tests/enumerate-tests | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/enumerate-tests b/tests/enumerate-tests index c80a35c..506f80d 100755 --- a/tests/enumerate-tests +++ b/tests/enumerate-tests @@ -47,13 +47,14 @@ test-begin-gencontrol () { gencontrol-add-things () { local varname=$1; shift + local delim=$1; shift local thing eval ' for thing in "$@"; do - case " $'$varname'," in - *" "$thing","*) continue ;; + case " $'$varname$delim '" in + *" "$thing"'$delim' "*) continue ;; esac - '$varname'+="${'$varname':+, }$thing" + '$varname'+="${'$varname':+'$delim' }$thing" done ' } @@ -64,7 +65,7 @@ restriction-gencontrol () { } gencontrol-add-deps () { - gencontrol-add-things dependencies "$@" + gencontrol-add-things dependencies , "$@" } dependencies-gencontrol () { |