From 3253c53926cd11a9fc96f5ef3c98b58f0aaef959 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 3 Sep 2021 12:20:07 -0500 Subject: Simplify reset test, and test removal of the process from the table --- test/resettest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/resettest.sh b/test/resettest.sh index b0cb9e1..7278ab0 100755 --- a/test/resettest.sh +++ b/test/resettest.sh @@ -20,7 +20,7 @@ TERM=15 function sleep_reset { # Wait for parent to enter wait. - trap "kill $!;kill $BASHPID" $TERM + trap "exit 0" $TERM while [[ $(ps -h -o wchan -p $PPID) != do_wait ]] ; do usleep 100 ; done echo Register parent for SIGUSR1 echo "$$" "$USR1" >/sys/devices/platform/mts-io/radio-reset-monitor @@ -42,5 +42,7 @@ if ((in_reset == 0)) ; then # pgrep is needed to find the sleep process pgrep -P $! | xargs kill fi +echo "$$" "0" >/sys/devices/platform/mts-io/radio-reset-monitor echo Radio Reset is done. date +sleep 30 -- cgit v1.2.3