mirror of https://github.com/wolfSSL/wolfssl.git
do_cleanup on pkcallbacks.test
parent
80cc737ffa
commit
ed8e0132a7
|
@ -23,6 +23,17 @@ remove_ready_file() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_cleanup() {
|
||||||
|
echo "in cleanup"
|
||||||
|
|
||||||
|
if [ $server_pid != $no_pid ]
|
||||||
|
then
|
||||||
|
echo "killing server"
|
||||||
|
kill -9 $server_pid
|
||||||
|
fi
|
||||||
|
remove_ready_file
|
||||||
|
}
|
||||||
|
|
||||||
# trap this function so if user aborts with ^C or other kill signal we still
|
# trap this function so if user aborts with ^C or other kill signal we still
|
||||||
# get an exit that will in turn clean up the file system
|
# get an exit that will in turn clean up the file system
|
||||||
abort_trap() {
|
abort_trap() {
|
||||||
|
@ -94,7 +105,6 @@ run_test() {
|
||||||
if [ $server_result != 0 ]
|
if [ $server_result != 0 ]
|
||||||
then
|
then
|
||||||
echo -e "server failed!"
|
echo -e "server failed!"
|
||||||
do_cleanup
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue