diff options
author | Andrei Pavel <andrei@isc.org> | 2022-01-25 14:51:55 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2022-01-25 16:17:09 +0100 |
commit | 5b77e32a3b993b065cd07d61a5cc2bc3c0504367 (patch) | |
tree | 9f53fe95b40017a2be2270df96855cd1e9d1b9db /src | |
parent | [#2246] Additional review comments (diff) | |
download | kea-5b77e32a3b993b065cd07d61a5cc2bc3c0504367.tar.xz kea-5b77e32a3b993b065cd07d61a5cc2bc3c0504367.zip |
[#2225] fix mysql test not matching reference text
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/admin/tests/mysql_tests.sh.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/admin/tests/mysql_tests.sh.in b/src/bin/admin/tests/mysql_tests.sh.in index 95610ccfbe..1d288774cd 100644 --- a/src/bin/admin/tests/mysql_tests.sh.in +++ b/src/bin/admin/tests/mysql_tests.sh.in @@ -191,7 +191,10 @@ INSERT INTO schema_version VALUES (1, 7);' "${kea_admin}" db-version mysql -u "${db_user}" -p "${db_password}" -n "${db_name}" \ -x --protocol=TCP -x --hello 2> "@abs_top_srcdir@/src/bin/admin/test-data" assert_eq 2 "${EXIT_CODE}" "kea-admin -x -x succeeded. (expected %d, exit code %d)" - assert_str_eq "mysql: unknown option '--hello'" "$(tail -n 1 "@abs_top_srcdir@/src/bin/admin/test-data")" + if ! grep -F "unknown option '--hello'" "@abs_top_srcdir@/src/bin/admin/test-data"; then + printf 'second parameter --hello was not passed to mysql with -x\n' + test_finish 1 + fi rm -f "@abs_top_srcdir@/src/bin/admin/test-data" # Let's wipe the whole database |