fstests: use _require_symlinks on all necessary tests
[xfstests-dev.git] / tests / generic / 062
index b6e28e0fd34808c65f9c8ef9940238d158ad5b10..ba7448854996fb8675cda6f6406c31aadda5a21d 100755 (executable)
@@ -59,6 +59,7 @@ _supported_os Linux
 
 _require_scratch
 _require_attrs
 
 _require_scratch
 _require_attrs
+_require_symlinks
 
 rm -f $tmp.backup1 $tmp.backup2 $seqres.full
 
 
 rm -f $tmp.backup1 $tmp.backup2 $seqres.full
 
@@ -176,7 +177,7 @@ echo "*** backup everything"
 _backup $tmp.backup1
 
 echo "*** clear out the scratch device"
 _backup $tmp.backup1
 
 echo "*** clear out the scratch device"
-rm -fr $SCRATCH_MNT/*
+rm -rf $(find $SCRATCH_MNT/* | grep -v "lost+found")
 echo "AFTER REMOVE" >>$seqres.full
 getfattr -L -R -m '.' $SCRATCH_MNT >>$seqres.full
 
 echo "AFTER REMOVE" >>$seqres.full
 getfattr -L -R -m '.' $SCRATCH_MNT >>$seqres.full