diff options
author | Tony Hutter <[email protected]> | 2019-12-19 16:26:07 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-19 16:26:07 -0800 |
commit | 9fb2771aa5f53a14f8c30dca6b9f609d192e50f6 (patch) | |
tree | be45f618051ea8a88ae5797fc011af775b002ee7 /tests/runfiles | |
parent | 5e8ac0559046e8432bc7ae3232e4d4d746b09a4d (diff) |
Colorize zpool status output
If the ZFS_COLOR env variable is set, then use ANSI color
output in zpool status:
- Column headers are bold
- Degraded or offline pools/vdevs are yellow
- Non-zero error counters and faulted vdevs/pools are red
- The 'status:' and 'action:' sections are yellow if they're
displaying a warning.
This also includes a new 'faketty' function in libtest.shlib that is
compatible with FreeBSD (code provided by @freqlabs).
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #9340
Diffstat (limited to 'tests/runfiles')
-rw-r--r-- | tests/runfiles/common.run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runfiles/common.run b/tests/runfiles/common.run index 87849af65..a3396ac07 100644 --- a/tests/runfiles/common.run +++ b/tests/runfiles/common.run @@ -282,7 +282,7 @@ tests = ['zfs_upgrade_001_pos', 'zfs_upgrade_002_pos', 'zfs_upgrade_003_pos', tags = ['functional', 'cli_root', 'zfs_upgrade'] [tests/functional/cli_root/zpool] -tests = ['zpool_001_neg', 'zpool_002_pos', 'zpool_003_pos'] +tests = ['zpool_001_neg', 'zpool_002_pos', 'zpool_003_pos', 'zpool_colors'] tags = ['functional', 'cli_root', 'zpool'] [tests/functional/cli_root/zpool_add] |