]> 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 12:27:55 +0000 (14:27 +0200)
commitab78e350ddfcd7e88c529f3be393245fc709be2d
tree6d5aac5c0327536fda35555faa9fa1ae4c52189a
parent7fac94f5894125db332ebb20c0c48dd616d85b88
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.
bin/tests/system/conf.sh.common