mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-09 16:38:32 +01:00
Add COLORED_STDERR_IGNORED_BINARIES to exclude binaries.
This commit is contained in:
@@ -20,6 +20,7 @@ set -e
|
||||
|
||||
# Allow running the script directly without running `make check`.
|
||||
test "x$builddir" = x && builddir=.
|
||||
test "x$abs_builddir" = x && abs_builddir="`pwd`"
|
||||
test "x$EGREP" = x && EGREP='grep -E'
|
||||
|
||||
# The tests fail if running under coloredstderr because the tests redirect
|
||||
|
||||
@@ -59,3 +59,20 @@ COLORED_STDERR_FDS=
|
||||
export COLORED_STDERR_FDS
|
||||
test_program example example_environment_empty
|
||||
test_program_subshell example example_environment_empty
|
||||
|
||||
unset COLORED_STDERR_FDS
|
||||
|
||||
|
||||
# Test COLORED_STDERR_IGNORED_BINARIES.
|
||||
|
||||
if test -x /proc/self/exe; then
|
||||
COLORED_STDERR_IGNORED_BINARIES="$abs_builddir/example"
|
||||
export COLORED_STDERR_IGNORED_BINARIES
|
||||
test_program example example_environment_empty
|
||||
test_program_subshell example example_environment_empty
|
||||
|
||||
COLORED_STDERR_IGNORED_BINARIES=",some,other,path,,"
|
||||
export COLORED_STDERR_IGNORED_BINARIES
|
||||
test_program example example_environment
|
||||
test_program_subshell example example_environment
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user