From: Michał Kępień Date: Thu, 12 Jul 2018 11:35:10 +0000 (+0200) Subject: Do not spam console if "git status --ignored" fails during tests X-Git-Tag: v9.13.3~106^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be97feb4642746660dd793beed54b193579db0d;p=thirdparty%2Fbind9.git Do not spam console if "git status --ignored" fails during tests The "git status" command in Git versions before 1.7.2 does not support the "--ignored" option. Prevent spamming the console when running system tests from a Git repository on a host with an ancient Git version installed. --- diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 600cacd5c8b..0e7632ffbf7 100755 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -194,7 +194,7 @@ else $SHELL clean.sh $runall $systest "$@" if test -d ../../../.git then - git status -su --ignored $systest | \ + git status -su --ignored $systest 2>/dev/null | \ sed -n -e 's|^?? \(.*\)|I:file \1 not removed|p' \ -e 's|^!! \(.*/named.run\)$|I:file \1 not removed|p' \ -e 's|^!! \(.*/named.memstats\)$|I:file \1 not removed|p'