Skip to content
Snippets Groups Projects
Commit e25c49ed authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests-extra: add Knot.ctl() to allow arbitrary control operations

parent 1f579766
No related branches found
No related tags found
No related merge requests found
......@@ -995,6 +995,17 @@ class Knot(Server):
return s.conf
def ctl(self, params):
try:
check_call([self.control_bin] + self.start_params + params.split,
stdout=open(self.dir + "/call.out", mode="a"),
stderr=open(self.dir + "/call.err", mode="a"))
time.sleep(Server.START_WAIT)
except CalledProcessError as e:
self.backtrace()
raise Failed("Can't control='%s' server='%s', ret='%i'" %
(params, self.name, e.returncode))
class Nsd(Server):
def __init__(self, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment