Skip to content

Commit 33a4af7

Browse files
author
Paul Dagnelie
committed
Fix via tests
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 49e7ef1 commit 33a4af7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_features_001_pos.ksh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function cleanup
4949

5050
function check_features
5151
{
52-
for state in $(zpool get all $TESTPOOL | \
52+
for state in $(zpool get all $TESTPOOL | grep -v "dynamic_gang_header" | \
5353
awk '$2 ~ /feature@/ { print $3 }'); do
5454
if [[ "$state" != "enabled" && "$state" != "active" ]]; then
5555
log_fail "some features are not enabled on new pool"

tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_features_005_pos.ksh

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ function check_features
5757
return 1;
5858
fi
5959
else
60+
if [[ "feature@dynamic_gang_header" == "${2}" ]]; then
61+
continue
62+
fi
6063
# Failure other features must be enabled or active.
6164
if [[ "${3}" != "enabled" && "${3}" != "active" ]]; then
6265
return 2;

0 commit comments

Comments
 (0)