From 52baf839f8a37738207764937e53495d1abaacbf Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Wed, 28 Aug 2024 20:32:41 +0200 Subject: [PATCH] Fix TC_BRBINFO_4_1 for execution on TH (#35257) --- src/python_testing/TC_BRBINFO_4_1.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/python_testing/TC_BRBINFO_4_1.py b/src/python_testing/TC_BRBINFO_4_1.py index 5e1474adc35038..595d87912ad012 100644 --- a/src/python_testing/TC_BRBINFO_4_1.py +++ b/src/python_testing/TC_BRBINFO_4_1.py @@ -129,14 +129,16 @@ async def setup_class(self): asserts.fail('This test requires a TH_ICD_SERVER app. Specify app path with --string-arg th_icd_server_app_path:') self.kvs = f'kvs_{str(uuid.uuid4())}' - self.port = 5543 discriminator = 3850 passcode = 20202021 - app_args = f'--secured-device-port {self.port} --discriminator {discriminator} --passcode {passcode} --KVS {self.kvs} ' - cmd = f'{app} {app_args}' + cmd = [app] + cmd.extend(['--secured-device-port', str(5543)]) + cmd.extend(['--discriminator', str(discriminator)]) + cmd.extend(['--passcode', str(passcode)]) + cmd.extend(['--KVS', self.kvs]) logging.info("Starting ICD Server App") - self.app_process = subprocess.Popen(cmd, bufsize=0, shell=True) + self.app_process = subprocess.Popen(cmd) logging.info("ICD started") time.sleep(3)