From 86fd69ac6cbb8a58fff428c303c4c4372d2087e8 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Thu, 5 Jan 2023 12:35:06 +0000 Subject: [PATCH] fix calling mysqlbinlog for the CI --- .../tests/test_com_binlog_dump_enables_fast_forward-t.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/tap/tests/test_com_binlog_dump_enables_fast_forward-t.cpp b/test/tap/tests/test_com_binlog_dump_enables_fast_forward-t.cpp index fe0bf9f07..e846d4d60 100644 --- a/test/tap/tests/test_com_binlog_dump_enables_fast_forward-t.cpp +++ b/test/tap/tests/test_com_binlog_dump_enables_fast_forward-t.cpp @@ -17,9 +17,10 @@ int main(int argc, char** argv) { return -1; } - const std::string user = "sbtest1"; + const std::string user = "root"; + const std::string test_deps_path = getenv("TEST_DEPS"); - const int mysqlbinlog_res = system(("mysqlbinlog single_mysql8_backend-bin.000001 " + const int mysqlbinlog_res = system((test_deps_path + "/mysqlbinlog mysql1-bin.000001 " "--read-from-remote-server --user " + user + " --password=" + user + " --host 127.0.0.1 --port 6033").c_str()); ok(mysqlbinlog_res == 0, "'mysqlbinlog' should be correctly executed. Err code was: %d", mysqlbinlog_res);