tests: Print content of channels to investigate random failures

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2024-03-07 13:18:20 +01:00
parent 3b7095acbb
commit 9ee8d8cd20

View File

@@ -89,6 +89,7 @@ static int check_channel_output(ssh_channel c, const char *expected)
nbytes = ssh_channel_read(c, buffer, sizeof(buffer) - 1, 0);
while (nbytes > 0) {
buffer[nbytes]='\0';
ssh_log_hexdump("Read bytes:", (unsigned char *)buffer, nbytes);
if (strstr(buffer, expected) != NULL)
{
return 1;