]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Enable ro_props_001_pos
authorChaoyuZhang <zhang.chaoyu@zte.com.cn>
Wed, 30 Nov 2016 18:27:04 +0000 (02:27 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Nov 2016 18:27:04 +0000 (11:27 -0700)
This script was disabled as the avail/used space changed slightly.
Add sync_pool() and a short delay after snapshots are created to
ensure everything in flight has been written.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: ChaoyuZhang <zhang.chaoyu@zte.com.cn>
Closes #5201
Closes #5419

tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_set/ro_props_001_pos.ksh

index d3c090b89ab4f97d59c01d20cd52507773399afb..0b29787aea85c54530d244a26ae457c351fff48f 100644 (file)
@@ -169,7 +169,6 @@ tests = ['zfs_send_001_pos', 'zfs_send_002_pos', 'zfs_send_003_pos',
 
 # DISABLED:
 # mountpoint_003_pos - needs investigation
-# ro_props_001_pos - https://github.com/zfsonlinux/zfs/issues/5201
 [tests/functional/cli_root/zfs_set]
 tests = ['cache_001_pos', 'cache_002_neg', 'canmount_001_pos',
     'canmount_002_pos', 'canmount_003_pos', 'canmount_004_pos',
@@ -178,7 +177,8 @@ tests = ['cache_001_pos', 'cache_002_neg', 'canmount_001_pos',
     'share_mount_001_neg', 'snapdir_001_pos', 'onoffs_001_pos',
     'user_property_001_pos', 'user_property_003_neg', 'readonly_001_pos',
     'user_property_004_pos', 'version_001_neg', 'zfs_set_001_neg',
-    'zfs_set_002_neg', 'zfs_set_003_neg', 'property_alias_001_pos']
+    'zfs_set_002_neg', 'zfs_set_003_neg', 'property_alias_001_pos',
+    'ro_props_001_pos']
 
 # DISABLED: Tests need to be updated for Linux share behavior
 # zfs_share_005_pos - needs investigation, probably unsupported NFS share format
index c9a739109273a2dff58bf55296cefb92fff2d680..1f3c0cf09c219b2050ef7ff6568cbce32ff59331 100755 (executable)
@@ -72,6 +72,8 @@ log_onexit cleanup
 # Create filesystem and volume's snapshot
 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
+sync_pool $TESTPOOL
+$SLEEP 5
 
 typeset -i i=0
 typeset -i j=0