Commit 124fd587 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

test: add a --post-start hook

This hook runs after the test is started, in parallel with the actual test.
This can be used in case the test and the host need to coordinate somehow
in order to set something up (e.g. for a macvlan interface).

travis-ci: success for series starting with [v10,01/11] net: pass the struct nlattrs to dump() functions
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent dc58fccd
......@@ -374,6 +374,8 @@ class zdtm_test:
s = subprocess.Popen(s_args, env = env, cwd = root, close_fds = True,
preexec_fn = self.__freezer and self.__freezer.attach or None)
if act == "pid":
try_run_hook(self, ["--post-start"])
s.wait()
if self.__freezer:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment