Skip to content

Commit

Permalink
Fix TC_BRBINFO_4_1 for execution on TH (#35257)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson authored and pull[bot] committed Aug 30, 2024
1 parent a766495 commit 2689882
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/python_testing/TC_BRBINFO_4_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:<path_to_app>')

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)

Expand Down

0 comments on commit 2689882

Please sign in to comment.