Trunate logs instead of removing

By truncating the files, tests can be run while the log is being
tailed. If they are removed, the files need to be reopened each time a
test is started.
This commit is contained in:
Markus Mäkelä
2018-05-17 20:34:56 +03:00
parent 1b46679126
commit 14dc215a78

View File

@ -642,8 +642,8 @@ void TestConnections::init_maxscale(int m)
"chmod a+x %s;"
"%s"
"iptables -F INPUT;"
"rm -f %s/maxscale.log;"
"rm -f %s/maxscale1.log;"
"truncate -s 0 %s/maxscale.log;"
"truncate -s 0 %s/maxscale1.log;"
"rm -rf /tmp/core* /dev/shm/* /var/lib/maxscale/maxscale.cnf.d/ /var/lib/maxscale/*;"
"%s",
maxscales->access_homedir[m],