aboutgitcode
path: root/mbuto
diff options
context:
space:
mode:
authorSevinj Aghayeva <sevinj.aghayeva@gmail.com>2022-04-22 11:51:11 -0400
committerStefano Brivio <sbrivio@redhat.com>2022-04-22 17:59:06 +0200
commit326f446652f910f8def50e0f8cbe230b39e83508 (patch)
tree564f64efae346e4feb7598c6c12706fd280e9b47 /mbuto
parent2584ae2bd68ba813cd8e7537bcd2c3c7102924a4 (diff)
downloadmbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar.gz
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar.bz2
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar.lz
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar.xz
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.tar.zst
mbuto-326f446652f910f8def50e0f8cbe230b39e83508.zip
mbuto: handle collections that don't require any modules
Currently we assume that given a test collection, there will always be some set of kernel modules required for running the tests in the collection. This assumption is false for some collection, such as seccomp, and this patch handles such cases. Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
Diffstat (limited to 'mbuto')
-rwxr-xr-xmbuto7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbuto b/mbuto
index a3857b9..03a4547 100755
--- a/mbuto
+++ b/mbuto
@@ -241,12 +241,11 @@ profile_kselftests() {
>/dev/null
__files=$(list_join "${__colls}" "${__testpath}" '/config' ' ')
- __cfgs="$(${CAT} ${__files} 2>/dev/null)"
+ __mods="$(${CAT} ${__files} 2>/dev/null | \
+ ${AWK} -F'=' '/=m/ {print $1}' | ${SORT} -u)"
KMODS=
- if [ ! -z "${__cfgs}" ]; then
- __mods=$(echo "${__cfgs}" | ${AWK} -F'=' '/=m/ {print $1}' | ${SORT} -u)
-
+ if [ ! -z "${__mods}" ]; then
__pattern=$(list_join "${__mods}" '^obj-\$\(' '\).*.o$' '|')
__result=$(${BASENAME} -a -s .o \
$(${EGREP} -rn --include "*Makefile" ${__pattern} | \