Print the JSON in avro_alter

The test now prints the output in avro_alter. The replicate_from_master
function also stops maxscale before removing the files.
This commit is contained in:
Markus Mäkelä 2017-07-06 13:31:38 +03:00
parent ef73f3e217
commit 22d47aab52
2 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,7 @@ int main(int argc, char *argv[])
{
json_error_t err;
json_t* json = json_loads(line.c_str(), 0, &err);
test.tprintf("%s", line.c_str());
test.add_result(json == NULL, "Failed to parse JSON: %s", line.c_str());
json_decref(json);
nrows++;

View File

@ -967,8 +967,9 @@ bool TestConnections::replicate_from_master()
mysql_close(conn);
/** Clean up MaxScale directories */
ssh_maxscale(true, "service maxscale stop");
prepare_binlog();
ssh_maxscale(true, "service maxscale restart");
ssh_maxscale(true, "service maxscale start");
char log_file[256] = "";
char log_pos[256] = "4";