diff options
author | Rob Austein <sra@hactrn.net> | 2012-08-18 19:04:42 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-08-18 19:04:42 +0000 |
commit | ccc2eb0174eb708888249966e7c10306315fb1a5 (patch) | |
tree | 3dbfa6367bc384527fbd0e6801e8c5a363c2f2f1 /rpkid/tests/yamltest.py | |
parent | c57891061967171f5914cd1002273f1a7024a084 (diff) |
Merge rpkic profiling support from trunk/.
svn path=/branches/tk274/; revision=4639
Diffstat (limited to 'rpkid/tests/yamltest.py')
-rw-r--r-- | rpkid/tests/yamltest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpkid/tests/yamltest.py b/rpkid/tests/yamltest.py index b67e3541..3039f545 100644 --- a/rpkid/tests/yamltest.py +++ b/rpkid/tests/yamltest.py @@ -434,6 +434,9 @@ class allocation(object): Run rpkic for this entity. """ cmd = [prog_rpkic, "-i", self.name, "-c", self.path("rpki.conf")] + if profile: + cmd.append("--profile") + cmd.append(self.path("rpkic.%s.prof" % rpki.sundial.now())) cmd.extend(a for a in args if a is not None) print 'Running "%s"' % " ".join(cmd) subprocess.check_call(cmd, cwd = self.host.path()) |