From: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
To: sbrivio@redhat.com
Cc: outreachy@lists.linux.dev
Subject: [PATCH] mbuto: handle collections that don't require any modules
Date: Fri, 22 Apr 2022 11:51:11 -0400 [thread overview]
Message-ID: <20220422155111.GA313973@euclid> (raw)
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
reply other threads:[~2022-04-22 15:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220422155111.GA313973@euclid \
--to=sevinj.aghayeva@gmail.com \
--cc=outreachy@lists.linux.dev \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.