1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-tests: Show hung script debugging output

The output in a test failure appears to contain no pstree output
because "00\.test\.script,.*" does not match.  However, this is just a
guess because the output is not shown.

Showing the output makes it easier to understand test failures.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2020-04-21 11:34:12 +10:00 committed by Martin Schwenke
parent 70c38d404b
commit 1565446508

View File

@ -53,6 +53,11 @@ echo "Waiting for debugging output to appear..."
# Use test -s because the file is created above using mktemp # Use test -s because the file is created above using mktemp
wait_until 60 test -s "$debug_output" wait_until 60 test -s "$debug_output"
echo
echo "Debugging output:"
cat "$debug_output"
echo
echo "Checking output of hung script debugging..." echo "Checking output of hung script debugging..."
# Can we actually read kernel stacks # Can we actually read kernel stacks