]> git.ipfire.org Git - thirdparty/samba.git/commit
pytest samba-tool visualize: extend colour tests for $NO_COLOR
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 16 Aug 2022 02:04:57 +0000 (14:04 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 6 Sep 2022 21:12:36 +0000 (21:12 +0000)
commite7d78400bdd66e53dea1f7317bc48b9fc0fd82b1
tree81ceffd0a0c70849c5529aef40fd010e7d6f18e5
parentd9443fadba2f09871fe14caac1c00b8c753223d3
pytest samba-tool visualize: extend colour tests for $NO_COLOR

As described at https://no-color.org/, the NO_COLOR environment
variable is a widely used defacto-ish standard for asking for no
colour. If someone goes

                NO_COLOR=whatever samba-tool ...

we want to assume they want no ANSI colour codes, as if they had used
--color=no. But first we want to test that, so here we are.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
python/samba/tests/samba_tool/visualize.py
selftest/knownfail.d/samba-tool-visualize [new file with mode: 0644]