]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use helper functions for checking resolution
authorMichał Kępień <michal@isc.org>
Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)
commiteffd16ab252e65fc4fe050cd125fd0462eca6408
tree676596c974ffc7d448468de439532f736e21da0e
parentaaf81ca6ef0a4b3725de9f41efa3f442a6de1c85
Use helper functions for checking resolution

Extract repeated dig and grep calls into two helper shell functions,
resolution_succeeds() and resolution_fails(), in order to reduce code
duplication in the "legacy" system test, emphasize the similarity
between all the resolution checks in that test, and make the conditions
for success and failure uniform for all resolution checks in that test.
bin/tests/system/legacy/tests.sh