]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fixed failures of the MySQL database upgrade test.
authorMarcin Siodelski <marcin@isc.org>
Tue, 30 Aug 2016 13:56:31 +0000 (15:56 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 30 Aug 2016 13:56:31 +0000 (15:56 +0200)
This change was okayed on jabber.

src/bin/admin/tests/mysql_tests.sh.in

index ecab9a73a5c53f1237edef2da9a7fb2d8aa203da..78e86aa23e7689ebeb646d047b5d3c8013347287 100644 (file)
@@ -305,10 +305,10 @@ EOF
     # verify that foreign key fk_host_identifier_type exists
     qry="show create table hosts";
     text=`mysql_execute "${qry}"`
-    count=`echo $text | grep -ic "fk_host_identifier_type"`
+    count=`echo $text | grep -ic -m 1 "fk_host_identifier_type"`
     ERRCODE=$?
     assert_eq 0 $ERRCODE "show create table hosts failed. (expected status code %d, returned %d)"
-    assert_eq 2 "$count" "show create table hosts did not return correct number of fk_host_identifier_type instances. (expected %d, returned %d)"
+    assert_eq 1 "$count" "show create table hosts did not return correct number of fk_host_identifier_type instances. (expected %d, returned %d)"
 
     # verify that dhcp_option_scope table exists.
     qry="select count(*) from dhcp_option_scope";