ctdb-tests: Add run_tests.sh option to print logs on test failure
authorMartin Schwenke <martin@meltin.net>
Thu, 17 Oct 2019 04:53:09 +0000 (15:53 +1100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 19:39:40 +0000 (19:39 +0000)
commit787662604d4f578f10981845997ccd995f11d853
tree666c761aa709319c59a4d971cdcad412c368b463
parent5ae330e5a56553b8809f710230101acf044c98e3
ctdb-tests: Add run_tests.sh option to print logs on test failure

Implement this for local daemons integration tests, dumping last 100
lines of logs.  This makes it possible to debug some failures in
automated tests where the logs are unavailable for analysis.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/run_tests.sh
ctdb/tests/scripts/integration_local_daemons.bash