]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Show hung script debugging output
authorMartin Schwenke <martin@meltin.net>
Tue, 21 Apr 2020 01:34:12 +0000 (11:34 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 22 Jul 2020 07:53:35 +0000 (07:53 +0000)
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>
ctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh

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