From: Sage Weil Date: Tue, 16 Mar 2010 05:00:58 +0000 (-0700) Subject: qa: fix snaptest1.sh X-Git-Tag: v0.20~275^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f059e49d5c07d72e8a592d019edefd910e0e590b;p=ceph.git qa: fix snaptest1.sh --- diff --git a/qa/workunits/snaptest1.sh b/qa/workunits/snaptest1.sh index 47b3fc01fd34..cdb6c2852c66 100755 --- a/qa/workunits/snaptest1.sh +++ b/qa/workunits/snaptest1.sh @@ -5,7 +5,10 @@ echo 2 > file2 echo 3 > file3 mkdir .snap/snap1 echo 4 > file4 -if [ `ls` -eq `ls .snap/snap1` ]; then +now=`ls` +then=`ls .snap/snap1` +rmdir .snap/snap1 +if [ "$now" = "$then" ]; then echo live and snap contents are identical? false -fi \ No newline at end of file +fi