aboutgitcode
diff options
context:
space:
mode:
-rwxr-xr-xmbuto8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbuto b/mbuto
index 88c99ad..ad95efc 100755
--- a/mbuto
+++ b/mbuto
@@ -309,8 +309,12 @@ profile_kselftests() {
echo 3 > /proc/sys/kernel/printk
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
+ if [ "${a}" != "s" ]; then
+ if ./run_kselftest.sh '"${__run_args}"'; then
+ echo "All tests passed, shutting down guest..."
+ echo o > /proc/sysrq-trigger
+ fi
+ fi
'
for __f in $(${FIND} ${__testpath}kselftest_install/ -executable); do