1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-tests: Drop cleanup_handler()

Running testsuite-specific code here isn't a good option.

Daemons are now shut down in ctdb_test_exit(), even when testing is
interrupted.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-10-08 13:38:10 +11:00 committed by Amitay Isaacs
parent 0e9ead8f28
commit 92337234e5

View File

@ -284,18 +284,7 @@ do_cleanup ()
fi
}
cleanup_handler ()
{
if $TEST_CLEANUP ; then
if [ -n "$TEST_LOCAL_DAEMONS" -a "$f" = "simple" ] ; then
echo "***** shutting down daemons *****"
find_and_run_one_test simple/99_daemons_shutdown.sh "$tests_dir"
fi
fi
do_cleanup
}
trap cleanup_handler SIGINT SIGTERM
trap do_cleanup SIGINT SIGTERM
declare -a tests
i=0