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