]> git.ipfire.org Git - thirdparty/bind9.git/commit
Implement a convenience function for "rndc dumpdb"
authorMichał Kępień <michal@isc.org>
Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 8 Aug 2019 13:12:12 +0000 (15:12 +0200)
commit678a631f545d2fabaef16b3108e072e19a2ed2f7
tree5d749586df6c79c404da9b34ea462bdf04e7d116
parent32232caaa461af8b034200376edbffce99877136
Implement a convenience function for "rndc dumpdb"

Add a helper shell function, rndc_dumpdb(), which provides a convenient
way to call "rndc dumpdb" for a given server with optional additional
arguments.  Since database dumping is an asynchronous process, the
function waits until the dump is complete before returning, which
prevents false positives in system tests caused by inspecting the dump
before its preparation is finished.  The function also renames the dump
file before returning so that it does not get overwritten by subsequent
calls; this retains forensic data in case of an unexpected test failure.

(cherry picked from commit ab78e350ddfcd7e88c529f3be393245fc709be2d)
bin/tests/system/conf.sh.in
bin/tests/system/conf.sh.win32