From f6e9c9701052b9211439d7df328e866fbd48c3cf Mon Sep 17 00:00:00 2001 From: govint Date: Fri, 2 Dec 2016 03:44:12 -0800 Subject: [PATCH] Fix to recnt_test.sh to select line for recovery tests. --- misc/scripts/refcnt_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/scripts/refcnt_test.sh b/misc/scripts/refcnt_test.sh index 9105bd661..5a4dc97b0 100755 --- a/misc/scripts/refcnt_test.sh +++ b/misc/scripts/refcnt_test.sh @@ -34,7 +34,7 @@ log=/var/log/docker-volume-vsphere.log count=5 vname=refCountTestVol mount=/mnt/vmdk/$vname -timeout=60 +timeout=180 function cleanup_containers { to_kill=`docker ps -q` @@ -67,7 +67,7 @@ function check_files { } function check_recovery_record { - line=`tail -10 /var/log/docker-volume-vsphere.log | $GREP 'Volume name='` + line=`tail -10 /var/log/docker-volume-vsphere.log | $GREP 'Volume name=' | $GREP 'mounted=true'` expected="name=$vname count=$count mounted=true" echo $line | $GREP -q "$expected" ; if [ $? -ne 0 ] ; then