]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3971] Remove products of the LFC run in the shell based tests.
authorMarcin Siodelski <marcin@isc.org>
Mon, 28 Sep 2015 12:45:46 +0000 (14:45 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 28 Sep 2015 12:45:46 +0000 (14:45 +0200)
src/lib/testutils/dhcp_test_lib.sh.in

index 0b735fead3f9b791625e11eedaceeda8ed8ed564..b3e7602814944dff93e4b4b68947a762c486a5d6 100644 (file)
@@ -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}
 }