diff options
author | Brian Behlendorf <[email protected]> | 2021-12-22 09:37:27 -0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-02-16 17:58:55 -0800 |
commit | 74bba85423f1b1dc20da289af2e39094c35919ea (patch) | |
tree | e58bbe3448a12f75e42e6c60b13673e34fa52eb2 /tests | |
parent | f22ebf8fa666a4fbecfde4edb3a6ccd0a00db387 (diff) |
ZTS: Fix refreserv_raidz.ksh
The rerefreserv_raidz test was failing on Linux because the sync being
issued doesn't guarantee a pool sync. Switch to using the sync_pool
function and remove the ZTS exception for Linux.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #12897
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test-runner/bin/zts-report.py.in | 1 | ||||
-rwxr-xr-x | tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-runner/bin/zts-report.py.in b/tests/test-runner/bin/zts-report.py.in index 328a40488..3fab375e2 100755 --- a/tests/test-runner/bin/zts-report.py.in +++ b/tests/test-runner/bin/zts-report.py.in @@ -285,7 +285,6 @@ elif sys.platform.startswith('linux'): 'mmp/mmp_active_import': ['FAIL', known_reason], 'mmp/mmp_exported_import': ['FAIL', known_reason], 'mmp/mmp_inactive_import': ['FAIL', known_reason], - 'refreserv/refreserv_raidz': ['FAIL', known_reason], 'snapshot/rollback_003_pos': ['FAIL', known_reason], }) diff --git a/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh b/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh index 22891ef1d..056c7916d 100755 --- a/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh +++ b/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh @@ -110,7 +110,7 @@ for parity in 1 2 3; do block_device_wait "/dev/zvol/$vol" log_must dd if=/dev/zero of=/dev/zvol/$vol \ bs=1024k count=$volsize - sync + sync_pool $TESTPOOL ref=$(zfs get -Hpo value referenced "$vol") refres=$(zfs get -Hpo value refreservation "$vol") |