From: Marcin Siodelski Date: Mon, 28 Sep 2015 12:45:46 +0000 (+0200) Subject: [3971] Remove products of the LFC run in the shell based tests. X-Git-Tag: trac4074_base~11^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=747a83bf930c8d97652ca958735ca19a5844b6ed;p=thirdparty%2Fkea.git [3971] Remove products of the LFC run in the shell based tests. --- diff --git a/src/lib/testutils/dhcp_test_lib.sh.in b/src/lib/testutils/dhcp_test_lib.sh.in index 0b735fead3..b3e7602814 100644 --- a/src/lib/testutils/dhcp_test_lib.sh.in +++ b/src/lib/testutils/dhcp_test_lib.sh.in @@ -247,7 +247,10 @@ cleanup() { # Remove temporary files. rm -rf ${LOG_FILE} - rm -rf ${LEASE_FILE} + # Use asterisk to remove all files starting with the given name, + # in case the LFC has been run. LFC creates files with postfixes + # appended to the lease file name. + rm -rf ${LEASE_FILE}* rm -rf ${CFG_FILE} rm -rf ${KEACTRL_CFG_FILE} }