URL: https://github.com/freeipa/freeipa/pull/5751 Author: stanislavlevin Title: #5751: test-only: Pass down startup delay for pkispawn Action: opened
PR body: """ """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/5751/head:pr5751 git checkout pr5751
From 8a101387a4c12e1c50b6b5fee62026c9d9e422b2 Mon Sep 17 00:00:00 2001 From: Stanislav Levin <s...@altlinux.org> Date: Wed, 5 May 2021 22:44:30 +0300 Subject: [PATCH] test-only: Pass down startup delay for pkispawn --- ipaserver/install/dogtaginstance.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 5cc7f1602a5..644acd4eace 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -193,6 +193,10 @@ def spawn_instance(self, cfg_file, nolog_list=()): parameters. """ subsystem = self.subsystem + spawn_env = os.environ.copy() + timeout = str(api.env.startup_timeout) + spawn_env["PKISPAWN_STARTUP_TIMEOUT_SECONDS"] = timeout + args = [paths.PKISPAWN, "-s", subsystem, "-f", cfg_file, @@ -204,7 +208,7 @@ def spawn_instance(self, cfg_file, nolog_list=()): cfg_file, ipautil.nolog_replace(f.read(), nolog_list)) try: - ipautil.run(args, nolog=nolog_list) + ipautil.run(args, nolog=nolog_list, env=spawn_env) except ipautil.CalledProcessError as e: self.handle_setup_error(e)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure