]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix snaptest1.sh
authorSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 05:00:58 +0000 (22:00 -0700)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 06:47:24 +0000 (23:47 -0700)
qa/workunits/snaptest1.sh

index 47b3fc01fd34655cbbd77916f724b5183e8bd79c..cdb6c2852c66699c48c646b22649c8385d56fd4d 100755 (executable)
@@ -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