mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
tests: make ceph_watch_wait output watchfile content on failure
It should help in troubleshooting remote test failures. Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
ac9d75c471
commit
7920db3da9
@ -183,7 +183,12 @@ function ceph_watch_wait()
|
||||
done
|
||||
|
||||
kill $CEPH_WATCH_PID
|
||||
grep "$regexp" $CEPH_WATCH_FILE
|
||||
|
||||
if ! grep "$regexp" $CEPH_WATCH_FILE; then
|
||||
echo "pattern ${regexp} not found in watch file. Full watch file content:" >&2
|
||||
cat $CEPH_WATCH_FILE >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function test_mon_injectargs()
|
||||
|
Loading…
Reference in New Issue
Block a user