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:
Mykola Golub 2015-01-28 14:43:32 +02:00 committed by Sage Weil
parent ac9d75c471
commit 7920db3da9

View File

@ -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()