Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #791 from vmware/fix-ref
Browse files Browse the repository at this point in the history
Fix to recnt_test.sh to select line for recovery tests.
  • Loading branch information
Ritesh H Shukla authored Dec 6, 2016
2 parents 75072a9 + f6e9c97 commit a0ca62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/scripts/refcnt_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0ca62c

Please # to comment.