torture: Make kvm-remote print diagnostics on initial ssh failure
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 16 Jun 2023 03:11:21 +0000 (20:11 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:10:57 +0000 (15:10 -0700)
commit80021ffb6820baf77d17b7a3b7ec9e89faa69578
treeaeb8653f588e44f5c6ad0677ea54ae0607c0c12f
parentdd3ffd125f89cdb38093df56eecdfa5539d983b4
torture: Make kvm-remote print diagnostics on initial ssh failure

Currently, if the initial ssh fails, kvm-remote.sh gives up, printing a
message saying so.  But it would be nice to get a better idea as to why
ssh failed.  This commit therefore dumps out ssh's exit code, stdout,
and stderr upon ssh failure for diagnostic purposes.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-remote.sh