aboutgitcode
path: root/mbuto
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-25 18:31:36 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-25 18:31:36 +0200
commite4da23da1e1239c5cca575c4a5689d0f7397c6c8 (patch)
treee7f7e6e725bb42f398fc4854bd9aa24ef0210261 /mbuto
parentf5c0ab06b761cd4f9631fe72dd8ba2366048c941 (diff)
downloadmbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar.gz
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar.bz2
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar.lz
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar.xz
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.tar.zst
mbuto-e4da23da1e1239c5cca575c4a5689d0f7397c6c8.zip
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 <sevinj.aghayeva@gmail.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'mbuto')
-rwxr-xr-xmbuto2
1 files changed, 2 insertions, 0 deletions
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