Skip to content

Commit 52baf83

Browse files
authored
Fix TC_BRBINFO_4_1 for execution on TH (project-chip#35257)
1 parent 6b5a2ce commit 52baf83

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/python_testing/TC_BRBINFO_4_1.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,16 @@ async def setup_class(self):
129129
asserts.fail('This test requires a TH_ICD_SERVER app. Specify app path with --string-arg th_icd_server_app_path:<path_to_app>')
130130

131131
self.kvs = f'kvs_{str(uuid.uuid4())}'
132-
self.port = 5543
133132
discriminator = 3850
134133
passcode = 20202021
135-
app_args = f'--secured-device-port {self.port} --discriminator {discriminator} --passcode {passcode} --KVS {self.kvs} '
136-
cmd = f'{app} {app_args}'
134+
cmd = [app]
135+
cmd.extend(['--secured-device-port', str(5543)])
136+
cmd.extend(['--discriminator', str(discriminator)])
137+
cmd.extend(['--passcode', str(passcode)])
138+
cmd.extend(['--KVS', self.kvs])
137139

138140
logging.info("Starting ICD Server App")
139-
self.app_process = subprocess.Popen(cmd, bufsize=0, shell=True)
141+
self.app_process = subprocess.Popen(cmd)
140142
logging.info("ICD started")
141143
time.sleep(3)
142144

0 commit comments

Comments
 (0)