aboutgitcode
path: root/mbuto
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-28 17:43:09 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-29 14:26:24 +0200
commit00d49371c00a3a7286896d064d0a6ed8c06755e6 (patch)
tree698190a003318a174e151090c38585f833bf8a7a /mbuto
parent572d0aaeb5fa7ac41cd17fbc2f5f306d3e7a68cc (diff)
downloadmbuto-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>
Diffstat (limited to 'mbuto')
-rwxr-xr-xmbuto7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbuto b/mbuto
index ad95efc..65a9096 100755
--- a/mbuto
+++ b/mbuto
@@ -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}" '^' '$' '|')"