X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fuse%2Ftest-fuse.sh;h=6d2f0fe05b37b6db09ac49dfebeacf0bf49799ee;hp=fffd851f021bfa727dbd3743d11fedd67a4cdc96;hb=dc8e4b057ecd3984d7c27c8e;hpb=5c2da21b2ae56adc16bbd5bf9740a04ca70f9f19 diff --git a/fuse/test-fuse.sh b/fuse/test-fuse.sh index fffd851..6d2f0fe 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,24 @@ 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