Save output of mysqlmon tests
Before the tests truncate the log, it can be copied to a backup file. This allows the whole log to be inspected after the test is complete.
This commit is contained in:
@ -22,7 +22,8 @@ void get_output(TestConnections& test)
|
|||||||
{
|
{
|
||||||
test.tprintf("MaxScale output:");
|
test.tprintf("MaxScale output:");
|
||||||
}
|
}
|
||||||
output = test.maxscales->ssh_node_output(0, "cat /var/log/maxscale/maxscale.log && "
|
output = test.maxscales->ssh_node_output(0,
|
||||||
|
"cat /var/log/maxscale/maxscale.log | tee -a /var/log/maxscale/maxscale_backup.log && "
|
||||||
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
|
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
|
||||||
true, &ec);
|
true, &ec);
|
||||||
if (test.verbose)
|
if (test.verbose)
|
||||||
|
Reference in New Issue
Block a user