* [PATCH] mbuto: handle collections that don't require any modules
@ 2022-04-22 15:51 Sevinj Aghayeva
0 siblings, 0 replies; only message in thread
From: Sevinj Aghayeva @ 2022-04-22 15:51 UTC (permalink / raw)
To: sbrivio; +Cc: outreachy
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>
---
mbuto | 7 +++----
1 file 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} | \
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-22 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 15:51 [PATCH] mbuto: handle collections that don't require any modules Sevinj Aghayeva
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.