X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=fuse%2Ftest-fuse.sh;h=15e96313204b28c9bbc18eb994b301d2b06ac985;hb=866a6a0fa5124a06918f84b7db28f831ab6e4495;hp=fffd851f021bfa727dbd3743d11fedd67a4cdc96;hpb=5c2da21b2ae56adc16bbd5bf9740a04ca70f9f19;p=libguestfs.git diff --git a/fuse/test-fuse.sh b/fuse/test-fuse.sh index fffd851..15e9631 100755 --- a/fuse/test-fuse.sh +++ b/fuse/test-fuse.sh @@ -69,8 +69,8 @@ function cleanup () # you from unmounting it! Hence the need for this loop. count=10 while ! fusermount -u "$mp" && [ $count -gt 0 ]; do - sleep 1 - ((count--)) + sleep 1 + ((count--)) done rm -f "$image" @@ -86,20 +86,22 @@ function stage () ((s++)) } -stage Create filesystem with some inital content +stage Create filesystem with some initial content $guestfish <> copy.txt +echo world >> copy.txt +echo bigger >> copy.txt +echo biggest >> copy.txt +[ "$(cat copy.txt)" = "hello +world +bigger +biggest" ] + # These ones are not yet tested by the current script: #stage XXX statfs/statvfs #stage XXX xattr operations