From: Tomek Mrugalski Date: Fri, 26 Jun 2015 10:14:01 +0000 (+0200) Subject: [3681] shell tests in admin fixed X-Git-Tag: trac3874_base~33^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fb75897931e04b145c3b4e76239746df82a59c;p=thirdparty%2Fkea.git [3681] shell tests in admin fixed - ipv6_reservations is now deleted before all other tables --- diff --git a/src/bin/admin/tests/mysql_tests.sh.in b/src/bin/admin/tests/mysql_tests.sh.in index f405f85285..f8f1d776dd 100755 --- a/src/bin/admin/tests/mysql_tests.sh.in +++ b/src/bin/admin/tests/mysql_tests.sh.in @@ -38,6 +38,11 @@ keaadmin=@abs_top_builddir@/src/bin/admin/kea-admin mysql_wipe() { printf "Wiping whole database %s\n" $db_name + # ipv6_reservations table must be deleted first, as it has contraints that + # are dependent on hosts. Therefore hosts table cannot be deleted before + # ipv6_reservations. + mysql_execute "DROP TABLE IF EXISTS ipv6_reservations;" + # First we build the list of drop table commands # We don't bother with "cascade" because as of MySQL # 5.1 it is only there to ease porting, it doesn't