2
0
Fork 0

[tests] run config test with valgrind too if enabled

personal/stbuehler/wip
Stefan Bühler 2013-08-19 19:11:02 +02:00
parent 32e91a9e8a
commit 5fb031a910
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ class Lighttpd(Service):
logfile = open(self.log, "w")
inp = self.devnull()
args = [base.Env.worker, '-m', base.Env.plugindir, '-c', base.Env.lighttpdconf, '-t']
if base.Env.valgrind:
args = [base.Env.valgrind] + args
print >> base.Env.log, "Testing lighttpd config: %s" % (' '.join(args))
proc = subprocess.Popen(args, stdin = inp, stdout = logfile, stderr = logfile, close_fds = True)
if None != inp: inp.close()