mbuto: handle collections that don't require any modules
PATCH 1/1 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 <[email protected]>
--- mbuto | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
mbuto +3 -4
@@ -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} | \
Signature · 1 line
2.25.1