]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rename $HOSTNAME to $HOST_NAME to silence checkbashisms
authorMichal Nowak <mnowak@isc.org>
Thu, 8 Sep 2022 15:12:46 +0000 (17:12 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 22:13:04 +0000 (23:13 +0100)
commit8b9634c9ed89ddf9587ff2fd3e0c0e6655d4337c
tree1010ff1f529f580e0775fd2576697cf1f8a0340b
parent0f2e25af5267613d103029a644c2812c1157042e
Rename $HOSTNAME to $HOST_NAME to silence checkbashisms

checkbashisms warns about possible reliance on HOSTNAME environmental
variable which Bash sets to the name of the current host, and some
commands may leverage it:

    possible bashism in builtin/tests.sh line 199 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns1.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 221 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns2.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 228 ($HOST(TYPE|NAME)):
    grep "^; NSID: .* (\"$HOSTNAME\")$" dig.out.ns2.$n > /dev/null || ret=1

We don't use the variable this way but rename it to HOST_NAME to silence
the tool.

(cherry picked from commit ae33a8ddeae6bc1398377fec8277ea50cc7dfc00)
bin/tests/system/builtin/tests.sh