Browse Source

[tests] run config test with valgrind too if enabled

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent
commit
5fb031a910
  1. 2
      tests/service.py

2
tests/service.py

@ -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()

Loading…
Cancel
Save