From f6c09b83da8f8bfe842054a38063894c70ef3cf9 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 1 Dec 2025 16:54:36 +0000 Subject: [PATCH] cmdtest.py autosign: `wait_loop_start()`: add `opts` param --- test/cmdtest_d/autosign.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cmdtest_d/autosign.py b/test/cmdtest_d/autosign.py index 6ec25d21..abe694d4 100755 --- a/test/cmdtest_d/autosign.py +++ b/test/cmdtest_d/autosign.py @@ -546,21 +546,21 @@ class CmdTestAutosignThreaded(CmdTestAutosignBase): self.remove_device_online() return t - def _wait_loop_start(self, add_opts=[]): + def _wait_loop_start(self, opts=[], add_opts=[]): t = self.spawn( 'mmgen-autosign', - self.opts + add_opts + ['--full-summary', 'wait'], + (opts or self.opts) + add_opts + ['--full-summary', 'wait'], direct_exec = True, no_passthru_opts = True, spawn_env_override = self.spawn_env | {'EXEC_WRAPPER_DO_RUNTIME_MSG': ''}) self.write_to_tmpfile('autosign_thread_pid', str(t.ep.pid)) return t - def wait_loop_start(self, add_opts=[]): + def wait_loop_start(self, opts=[], add_opts=[]): import threading threading.Thread( target = self._wait_loop_start, - kwargs = {'add_opts': add_opts}, + kwargs = {'opts': opts, 'add_opts': add_opts}, name = 'Autosign wait loop').start() time.sleep(0.1) # try to ensure test output is displayed before next test starts return 'silent'