mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
output: add color support to text output
When --warning or --critical thresholds are defined with text output lines that exceed threshold will be either yellow (warning) or red (critical). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
48962004b8
commit
344ed2900d
8 changed files with 128 additions and 28 deletions
|
|
@ -8,7 +8,7 @@ if [ ! -d tests/outputs ]; then
|
|||
mkdir tests/outputs
|
||||
fi
|
||||
|
||||
dhcpd-pools -c $top_srcdir/tests/confs/$IAM \
|
||||
dhcpd-pools -c $top_srcdir/tests/confs/$IAM --color=never \
|
||||
-l $top_srcdir/tests/leases/$IAM -o tests/outputs/$IAM
|
||||
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
|
||||
exit $?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue