torture: Make kvm-remote.sh account for network failure in pathname checks
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Apr 2021 16:56:42 +0000 (09:56 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:05:07 +0000 (16:05 -0700)
commitc43d3b0083b4f2e9b14174a5857ab06cbca986df
treea1bc1cb06fc312399b32f0bbe2631c0da33a4eff
parent063f5a4df99145ba0a5d4879d171a8175235f37b
torture: Make kvm-remote.sh account for network failure in pathname checks

In a long-duration kvm-remote.sh run, almost all of the remote accesses will
be simple file-existence checks.  These are thus the most likely to be caught
out by network failures, which do happen from time to time.

This commit therefore takes a first step towards tolerating temporary
network outages by making the file-existence checks repeat in the face of
such an outage.  They also print a message every minute during a outage,
allowing the user to take appropriate action.

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