diff options
author | Ryan Moeller <[email protected]> | 2020-07-31 21:11:21 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-31 18:11:21 -0700 |
commit | 721ed0154817cf43507ce36d1e85a059365c8bb1 (patch) | |
tree | be18514f058985e825f6ac0585affbcb52b4899e | |
parent | 25499e2139b248eef1b89148002ade27f0223ba9 (diff) |
ZTS: Use POSIX-compatible space character class
FreeBSD recently integrated a change which causes \s in a regex to
throw an error instead of silently being misinterpreted as an s.
Change the regex in zpool_colors.ksh to use [[:space:]].
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10651
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh index 0ec1e8425..18f238386 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh @@ -63,7 +63,7 @@ log_note "$(faketty TERM=xterm-256color ZFS_COLOR=1 zpool status)" # Replace the escape codes with "ESC" so they're easier to grep out="$(faketty TERM=xterm-256color ZFS_COLOR=1 zpool status | \ grep -E 'pool:|DEGRADED' | \ - sed -r 's/\s+//g;'$(echo -e 's/\033/ESC/g'))" + sed -r 's/[[:space:]]+//g;'$(echo -e 's/\033/ESC/g'))" log_note "$(echo $out)" |