From 12bedaef75cbca8abd0e8a4b9175f78c99266fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 12 Jul 2018 13:35:10 +0200 Subject: [PATCH] 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. (cherry picked from commit 2be97feb4642746660dd793beed54b193579db0d) --- bin/tests/system/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 600cacd5c8..0e7632ffbf 100644 --- 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'