diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-04-28 17:43:09 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-29 14:26:24 +0200 |
commit | 00d49371c00a3a7286896d064d0a6ed8c06755e6 (patch) | |
tree | 698190a003318a174e151090c38585f833bf8a7a | |
parent | 572d0aaeb5fa7ac41cd17fbc2f5f306d3e7a68cc (diff) | |
download | mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar.gz mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar.bz2 mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar.lz mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar.xz mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.tar.zst mbuto-00d49371c00a3a7286896d064d0a6ed8c06755e6.zip |
mbuto: kselftests: Check if no collections are given after adding single tests
...and not before -- otherwise a -T option without -C will cause all
collections to be enabled.
Fixes: 2584ae2bd68b ("mbuto: kselftests: Fill in collections if none are given")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-x | mbuto | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -216,14 +216,15 @@ profile_kselftests() { __colls="${__c} ${__colls}" done + for __t in ${SUBOPT_test}; do + __colls="${__colls} $(echo ${__t} | ${AWK} -F':' '{print $1}')" + done + if [ -z "${__colls}" ]; then __colls="$(${SED} -n 's/^TARGETS += \(.*\)$/\1/p' \ "${__makefile}")" fi - for __t in ${SUBOPT_test}; do - __colls="${__colls} $(echo ${__t} | ${AWK} -F':' '{print $1}')" - done __colls="$(echo ${__colls} | ${TR} ' ' '\n' | ${SORT} -u)" __pattern="$(list_join "${__colls}" '^' '$' '|')" |