Browse Source

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

Marcin Siodelski 9 years ago
parent
commit
747a83bf93
1 changed files with 4 additions and 1 deletions
  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}
 }