]> granicus.if.org Git - zfs/commitdiff
Update migration tests
authorlegend-hua <liu.hua130@zte.com.cn>
Mon, 31 Oct 2016 21:55:40 +0000 (05:55 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Oct 2016 21:55:40 +0000 (14:55 -0700)
Due to the instability of the migration tests, the test will skip.
The migration tests focus on migrating test file from fs to ZFS fs.
We can create zpool and ext2 directly by loop device, rather than
by set_partition

Reviewed-by: Sydney Vanda <sydney.m.vanda@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: legend-hua <liu.hua130@zte.com.cn>
Closes #5315

tests/zfs-tests/tests/functional/migration/setup.ksh

index 2381b5f857b64b8456d6f2949b8bc38760687809..b923256e0782c88bcadba9280af22261d4a60f1e 100755 (executable)
 
 verify_runnable "global"
 
-if ! $(is_physical_device $ZFS_DISK) ; then
-       log_unsupported "Only partitionable physical disks can be used"
-fi
-
 case $DISK_COUNT in
 0)
        log_untested "Need at least 1 disk device for test"
@@ -50,10 +46,7 @@ case $DISK_COUNT in
        ;;
 esac
 
-set_partition ${ZFSSIDE_DISK##*s} "" $FS_SIZE $ZFS_DISK
-set_partition ${NONZFSSIDE_DISK##*s} "" $FS_SIZE $NONZFS_DISK
-
-create_pool $TESTPOOL "$ZFSSIDE_DISK"
+create_pool $TESTPOOL "$ZFS_DISK"
 
 $RM -rf $TESTDIR  || log_unresolved Could not remove $TESTDIR
 $MKDIR -p $TESTDIR || log_unresolved Could not create $TESTDIR
@@ -64,10 +57,10 @@ log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
 $RM -rf $NONZFS_TESTDIR  || log_unresolved Could not remove $NONZFS_TESTDIR
 $MKDIR -p $NONZFS_TESTDIR || log_unresolved Could not create $NONZFS_TESTDIR
 
-$ECHO "y" | $NEWFS -v ${DEV_DSKDIR}/$NONZFSSIDE_DISK
+$ECHO "y" | $NEWFS -v ${DEV_DSKDIR}/$NONZFS_DISK
 (( $? != 0 )) &&
        log_untested "Unable to setup a UFS file system"
 
-log_must $MOUNT ${DEV_DSKDIR}/$NONZFSSIDE_DISK $NONZFS_TESTDIR
+log_must $MOUNT ${DEV_DSKDIR}/$NONZFS_DISK $NONZFS_TESTDIR
 
 log_pass