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:
Markus Mäkelä 2018-10-01 12:27:26 +03:00
parent 288fbc8c33
commit dad4f55ee6
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -22,7 +22,8 @@ void get_output(TestConnections& test)
{
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",
true, &ec);
if (test.verbose)