From 721ed0154817cf43507ce36d1e85a059365c8bb1 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Fri, 31 Jul 2020 21:11:21 -0400 Subject: [PATCH] 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 Signed-off-by: Ryan Moeller Closes #10651 --- .../zfs-tests/tests/functional/cli_root/zpool/zpool_colors.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"