xfstests: convert tests to use new results directory
[xfstests-dev.git] / tests / generic / 169
index 413a86bdfa1ff657a11ebd94c107b58d4edee63b..99cf5473ae34d8b8332272a7eb6bc942e859a9c0 100755 (executable)
 #
 
 seq=`basename $0`
+seqres=$RESULT_DIR/$seq
+seqres=$RESULT_DIR/$seq
+seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
 tmp=/tmp/$$
-rm -f $seq.full
+rm -f $seqres.full
 status=1    # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
@@ -56,10 +59,10 @@ _supported_os Linux
 
 _require_scratch
 
-_scratch_mkfs >>$seq.full 2>&1 \
+_scratch_mkfs >>$seqres.full 2>&1 \
        || _fail "mkfs scratch failed"
 
-_scratch_mount >>$seq.full 2>&1 \
+_scratch_mount >>$seqres.full 2>&1 \
     || _fail "mount failed: $MOUNT_OPTIONS"
 
 echo "# creating new file for io"
@@ -73,11 +76,11 @@ xfs_io -F -a -c "pwrite 0 5k" -c "fsync" \
        | _show_wrote_and_stat_only
 
 echo "# unmounting scratch"
-umount $SCRATCH_MNT>>$seq.full 2>&1 \
+umount $SCRATCH_MNT>>$seqres.full 2>&1 \
     || _fail "unmount failed"
 
 echo "# mounting scratch"
-_scratch_mount >>$seq.full 2>&1 \
+_scratch_mount >>$seqres.full 2>&1 \
     || _fail "mount failed: $MOUNT_OPTIONS"
 
 echo "# stating file to confirm correct size"
@@ -90,11 +93,11 @@ xfs_io -F -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \
        | _show_wrote_and_stat_only
 
 echo "# unmounting scratch"
-umount $SCRATCH_MNT>>$seq.full 2>&1 \
+umount $SCRATCH_MNT>>$seqres.full 2>&1 \
     || _fail "unmount failed"
 
 echo "# mounting scratch"
-_scratch_mount >>$seq.full 2>&1 \
+_scratch_mount >>$seqres.full 2>&1 \
     || _fail "mount failed: $MOUNT_OPTIONS"
 
 echo "# stating file to confirm correct size"