From e4da23da1e1239c5cca575c4a5689d0f7397c6c8 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 25 Apr 2022 18:31:36 +0200 Subject: mbuto: kselftests: Refresh kselftest_install directory before sourcing from it If we keep the existing directory and just install over it, all the programs from previous runs will be sourced from there, too. Suggested-by: Sevinj Aghayeva Signed-off-by: Stefano Brivio --- mbuto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbuto b/mbuto index 81abba2..88c99ad 100755 --- a/mbuto +++ b/mbuto @@ -231,6 +231,7 @@ profile_kselftests() { __skip_targets="$(${AWK} '/^TARGETS/ { print $3}' ${__makefile} | \ ${EGREP} -v "${__pattern}" | ${TR} '\n' ' ')" + ${RM} -rf "${__testpath}/kselftest_install" ${MAKE} SKIP_TARGETS="${__skip_targets}" -C ${__testpath} install \ >/dev/null 2>&1 @@ -309,6 +310,7 @@ profile_kselftests() { echo "Press s for shell, any other key to run selftests" read a [ "${a}" != "s" ] && ./run_kselftest.sh '"${__run_args}"' + echo o > /proc/sysrq-trigger ' for __f in $(${FIND} ${__testpath}kselftest_install/ -executable); do -- cgit v1.2.3