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