]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/005: log test result to right path
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Tue, 18 Feb 2014 10:18:20 +0000 (21:18 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Feb 2014 10:18:20 +0000 (21:18 +1100)
We should log test results to $seqres.full not $seq.full.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/005

index c364e1184a3caa99e25db3ab7d042fc64f5908df..7639635853aa0e444b0e60dfe75fe1ec56d8b06b 100755 (executable)
@@ -77,14 +77,14 @@ _btrfs_online_defrag()
        fi
 
        if [ "$str" != "" ]; then
-               $BTRFS_UTIL_PROG filesystem defragment $str $SCRATCH_MNT/tmp_file >> $seq.full 2>&1
+               $BTRFS_UTIL_PROG filesystem defragment $str $SCRATCH_MNT/tmp_file >> $seqres.full 2>&1
        else
                if [ "$1" = "1" ];then
-                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT/tmp_file >> $seq.full 2>&1
+                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT/tmp_file >> $seqres.full 2>&1
                elif [ "$1" = "2" ];then
-                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT/tmp_dir >> $seq.full 2>&1
+                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT/tmp_dir >> $seqres.full 2>&1
                elif [ "$1" = "3" ];then
-                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT >> $seq.full 2>&1
+                       $BTRFS_UTIL_PROG filesystem defragment $SCRATCH_MNT >> $seqres.full 2>&1
                fi
        fi
        ret_val=$?
@@ -134,9 +134,10 @@ _rundefrag()
 # real QA test starts here
 _supported_fs btrfs
 _supported_os Linux
-
-## We require scratch so that we'll have free contiguous space
 _require_scratch
+
+rm -f $seqres.full
+
 _scratch_mkfs >/dev/null 2>&1
 _scratch_mount
 _require_defrag