diff options
author | Brian Behlendorf <[email protected]> | 2016-10-13 16:00:26 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-14 10:11:00 -0700 |
commit | 7305538de316c89e68f2c0977ea8dabe14d0f065 (patch) | |
tree | 25665483d5e19e4f5d2325e73076c3957a5f5fac /tests | |
parent | 9a875c6c5dd1e7cb0dad56d593a428d570ea5111 (diff) |
Enable zfs_rename_002_pos, zfs_rename_005_neg, zfs_rename_007_pos
These tests all pass once updated to wait for udev to create the
expected linked under /dev/zvol/.
Reviewed-by: luozhengzheng <[email protected]>
Reviewed-by: yuxiang <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #5275
Diffstat (limited to 'tests')
3 files changed, 8 insertions, 5 deletions
diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run index 5764bb8f9..9d659af96 100644 --- a/tests/runfiles/linux.run +++ b/tests/runfiles/linux.run @@ -147,13 +147,11 @@ tests = ['zfs_receive_001_pos', 'zfs_receive_002_pos', 'zfs_receive_003_pos', 'zfs_receive_013_pos'] # DISABLED: -# zfs_rename_002_pos - needs investigation -# zfs_rename_005_neg - nested pools # zfs_rename_006_pos - needs investigation -# zfs_rename_007_pos - needs investigation [tests/functional/cli_root/zfs_rename] -tests = ['zfs_rename_001_pos', 'zfs_rename_003_pos', - 'zfs_rename_004_neg', 'zfs_rename_008_pos', 'zfs_rename_009_neg', +tests = ['zfs_rename_001_pos', 'zfs_rename_002_pos', 'zfs_rename_003_pos', + 'zfs_rename_004_neg', 'zfs_rename_005_neg', + 'zfs_rename_007_pos', 'zfs_rename_008_pos', 'zfs_rename_009_neg', 'zfs_rename_010_neg', 'zfs_rename_011_pos', 'zfs_rename_012_neg', 'zfs_rename_013_pos'] diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename.kshlib b/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename.kshlib index e363607eb..d2a6a2225 100644 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename.kshlib +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename.kshlib @@ -71,6 +71,7 @@ function rename_dataset # src dest typeset dest=$2 log_must $ZFS rename $src $dest + block_device_wait # # Verify src name no longer in use diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_007_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_007_pos.ksh index 425422fc6..5985eac4e 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_007_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_007_pos.ksh @@ -117,6 +117,7 @@ log_must $DIFF $SRC_FILE $obj if is_global_zone; then vol=$TESTPOOL/$TESTFS/vol.$$ ; volclone=$TESTPOOL/$TESTFS/volclone.$$ log_must $ZFS create -V 100M $vol + block_device_wait obj=$(target_obj $vol) log_must $DD if=$SRC_FILE of=$obj bs=$BS count=$CNT @@ -124,10 +125,12 @@ if is_global_zone; then snap=${vol}@snap.$$ log_must $ZFS snapshot $snap log_must $ZFS clone $snap $volclone + block_device_wait # Rename dataset & clone log_must $ZFS rename $vol ${vol}-new log_must $ZFS rename $volclone ${volclone}-new + block_device_wait # Compare source file and target file obj=$(target_obj ${vol}-new) @@ -141,6 +144,7 @@ if is_global_zone; then log_must $ZFS rename ${vol}-new $vol log_must $ZFS rename $snap ${snap}-new log_must $ZFS clone ${snap}-new $volclone + block_device_wait # Compare source file and target file obj=$(target_obj $volclone) |