aboutsummaryrefslogtreecommitdiff
path: root/ca/tests/yamltest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-28 17:13:46 +0000
committerRob Austein <sra@hactrn.net>2014-05-28 17:13:46 +0000
commitdad61b8efaca22afd13e452f618a74f1d50dbb38 (patch)
tree85731e05debcc0a158df663147c16bfe8277afc4 /ca/tests/yamltest.py
parent13134a0f8376c0cdffde344af319320257f39dbe (diff)
Rework logging initialization code.
svn path=/trunk/; revision=5836
Diffstat (limited to 'ca/tests/yamltest.py')
-rw-r--r--ca/tests/yamltest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py
index 5eb3bd2f..3716bd54 100644
--- a/ca/tests/yamltest.py
+++ b/ca/tests/yamltest.py
@@ -553,7 +553,7 @@ class allocation(object):
representing the running daemon.
"""
basename = os.path.splitext(os.path.basename(prog))[0]
- cmd = [prog, "-d", "-c", self.path("rpki.conf")]
+ cmd = [prog, "--foreground", "--log-stderr", "--config", self.path("rpki.conf")]
if args.profile and basename != "rootd":
cmd.append("--profile")
cmd.append(self.path(basename + ".prof"))
@@ -665,7 +665,7 @@ try:
if args.pidfile is not None:
open(args.pidfile, "w").write("%s\n" % os.getpid())
- rpki.log.init("yamltest", use_syslog = False)
+ rpki.log.init("yamltest")
# Allow optional config file for this tool to override default
# passwords: this is mostly so that I can show a complete working