Browse Source

cmdtest.py autosign: `wait_loop_start()`: add `opts` param

The MMGen Project 3 days ago
parent
commit
f6c09b83da
1 changed files with 4 additions and 4 deletions
  1. 4 4
      test/cmdtest_d/autosign.py

+ 4 - 4
test/cmdtest_d/autosign.py

@@ -546,21 +546,21 @@ class CmdTestAutosignThreaded(CmdTestAutosignBase):
 		self.remove_device_online()
 		self.remove_device_online()
 		return t
 		return t
 
 
-	def _wait_loop_start(self, add_opts=[]):
+	def _wait_loop_start(self, opts=[], add_opts=[]):
 		t = self.spawn(
 		t = self.spawn(
 			'mmgen-autosign',
 			'mmgen-autosign',
-			self.opts + add_opts + ['--full-summary', 'wait'],
+			(opts or self.opts) + add_opts + ['--full-summary', 'wait'],
 			direct_exec      = True,
 			direct_exec      = True,
 			no_passthru_opts = True,
 			no_passthru_opts = True,
 			spawn_env_override = self.spawn_env | {'EXEC_WRAPPER_DO_RUNTIME_MSG': ''})
 			spawn_env_override = self.spawn_env | {'EXEC_WRAPPER_DO_RUNTIME_MSG': ''})
 		self.write_to_tmpfile('autosign_thread_pid', str(t.ep.pid))
 		self.write_to_tmpfile('autosign_thread_pid', str(t.ep.pid))
 		return t
 		return t
 
 
-	def wait_loop_start(self, add_opts=[]):
+	def wait_loop_start(self, opts=[], add_opts=[]):
 		import threading
 		import threading
 		threading.Thread(
 		threading.Thread(
 			target = self._wait_loop_start,
 			target = self._wait_loop_start,
-			kwargs = {'add_opts': add_opts},
+			kwargs = {'opts': opts, 'add_opts': add_opts},
 			name   = 'Autosign wait loop').start()
 			name   = 'Autosign wait loop').start()
 		time.sleep(0.1) # try to ensure test output is displayed before next test starts
 		time.sleep(0.1) # try to ensure test output is displayed before next test starts
 		return 'silent'
 		return 'silent'