]> 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:01 +0000 (15:12 +0200)
commit841be8d06d6fc2982cf124e6c8bf42d52626d670
tree678a60c53df1092d46576ac6a8631dd841fcce0c
parentd0b9ca1a2e462a24732244196578388fa04f2ee2
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.common