We should log test results to $reqres.full not $req.full. Signed-off-by: Wang Shilong <wangsl.fnst@xxxxxxxxxxxxxx> --- tests/btrfs/005 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/btrfs/005 b/tests/btrfs/005 index c364e11..7639635 100755 --- a/tests/btrfs/005 +++ b/tests/btrfs/005 @@ -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 -- 1.8.3.1 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs