]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not spam console if "git status --ignored" fails during tests
authorMichał Kępień <michal@isc.org>
Thu, 12 Jul 2018 11:35:10 +0000 (13:35 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 13 Jul 2018 06:22:12 +0000 (08:22 +0200)
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.

bin/tests/system/run.sh

index 600cacd5c8b1765dc4621b3172311c99be8bf8b3..0e7632ffbf72481ffc8d6234ab2926a0a4d7419f 100755 (executable)
@@ -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'