aboutgitcode
path: root/mbuto
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-22 17:28:08 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-22 17:28:08 +0200
commit2584ae2bd68ba813cd8e7537bcd2c3c7102924a4 (patch)
tree3f9fc02c101a0dadb0b0a330c2fdad25b28198a7 /mbuto
parent5a51411e558a0609b5cf22ddbbe3d4a72e655e30 (diff)
downloadmbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar.gz
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar.bz2
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar.lz
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar.xz
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.tar.zst
mbuto-2584ae2bd68ba813cd8e7537bcd2c3c7102924a4.zip
mbuto: kselftests: Fill in collections if none are given
This fixes the case where just the profile is given, i.e. ./mbuto -p kselftests Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'mbuto')
-rwxr-xr-xmbuto7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbuto b/mbuto
index 6918415..a3857b9 100755
--- a/mbuto
+++ b/mbuto
@@ -216,6 +216,11 @@ profile_kselftests() {
__colls="${__c} ${__colls}"
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
@@ -325,7 +330,7 @@ profile_kselftests() {
# List of tools used here, assigned to uppercase variable names
TOOLS="awk basename bc cat cd chmod cp cpio depmod diff dirname du file find
grep egrep gzip ldconfig ldd ln ls make mkdir mknod mktemp modprobe mv
- printf readlink realpath rm rmdir seq sleep sort strip sync tr umount
+ printf readlink realpath rm rmdir sed seq sleep sort strip sync tr umount
uname wget which"
# err() - Print error and exit