Question: Why tests/generic/482 and tests/generic/487 can't pass both at the same time.

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Hi, I have a question when I ran the xfstests, please help me to solve this question, tks.


In my environment, I ues the machine with architecture of aarch64, and then setting the env in local.config file like below:




# Ideally define at least these 4 to match your environment
# The first 2 are required.
# See README for other variables which can be set.
#
# Note: SCRATCH_DEV >will< get overwritten!


export TEST_DEV=/dev/mmcblk0p12
export TEST_DIR=/mnt/xfstests/dir
export FSTYP=ext4
export SCRATCH_DEV=/dev/mmcblk0p13
export SCRATCH_MNT=/mnt/xfstests/dir-mnt
export SCRATCH_LOGDEV=/dev/mmcblk0p14
export USE_EXTERNAL=yes
export DUMP_CORRUPT_FS=1
export KEEP_DMESG=yes
export USE_KMEMLEK=yes
export LOGWRITES_DEV=/dev/mmcblk0p15
export MIN_FSSIZE=10485760 # 10MB
export DIFF_LENGTH=0


And execute the command "./check -l -T tests/generic/[0-9][0-9][0-9]" to run the xfstests. When it ran out, I find that "tests/generic/482" was failed, and "tests/generic/487" was successed. 


So I check the source code for those two tests, and I found that used different function in them, like below :


tests/generic/482 :


# real QA test starts here


# Modify as appropriate.
_supported_fs generic


_require_no_logdev
_require_command "$KILLALL_PROG" killall


--------------------------------------------------------------


tests/generic/487 : 



# real QA test starts here
_require_scratch_nocheck


sflag='-s'
case $FSTYP in
        btrfs)
                _notrun "btrfs has a specialized test for this"
                ;;
        *)
                ;;
esac


_require_logdev
_require_dm_target error


Then continue to check the source code :

common/rc :



# this test needs a logdev
#
_require_logdev()
{
    [ -z "$SCRATCH_LOGDEV" -o ! -b "$SCRATCH_LOGDEV" ] && \
        _notrun "This test requires a valid \$SCRATCH_LOGDEV"
    [ "$USE_EXTERNAL" != yes ] && \
        _notrun "This test requires USE_EXTERNAL to be enabled"


    # ensure its not mounted
    $UMOUNT_PROG $SCRATCH_LOGDEV 2>/dev/null
}


# This test requires that an external log device is not in use
#
_require_no_logdev()
{
[ "$USE_EXTERNAL" = "yes" ] && [ -n "$SCRATCH_LOGDEV" ] && \
_notrun "Test not compatible with external logs, skipped this test"
}


I find that these two functions behave as mutually exclusive in use, so I don't understand why xfstests can't pass both tests at the same time. Please help me to solve this question, thank you again. 


Looking forward to your reply.





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux