Parcourir la source

[3971] Remove products of the LFC run in the shell based tests.

Marcin Siodelski il y a 9 ans
Parent
commit
747a83bf93
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/lib/testutils/dhcp_test_lib.sh.in

+ 4 - 1
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}
 }