Skip to content

Commit

Permalink
Fix Fabric Sync test script issues discovered on TH (#35283)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson authored Aug 29, 2024
1 parent 9c59899 commit 9c778ce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions src/python_testing/TC_CCTRL_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ async def setup_class(self):
self.port = 5543
discriminator = random.randint(0, 4095)
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])
# TODO: Determine if we want these logs cooked or pushed to somewhere else
logging.info("Starting TH_SERVER")
self.app_process = subprocess.Popen(cmd, bufsize=0, shell=True)
self.app_process = subprocess.Popen(cmd)
logging.info("TH_SERVER started")
time.sleep(3)

Expand Down
9 changes: 6 additions & 3 deletions src/python_testing/TC_CCTRL_2_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ async def setup_class(self):
self.port = 5543
discriminator = random.randint(0, 4095)
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])
# TODO: Determine if we want these logs cooked or pushed to somewhere else
logging.info("Starting TH_SERVER")
self.app_process = subprocess.Popen(cmd, bufsize=0, shell=True)
self.app_process = subprocess.Popen(cmd)
logging.info("TH_SERVER started")
time.sleep(3)

Expand Down
9 changes: 6 additions & 3 deletions src/python_testing/TC_MCORE_FS_1_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ async def setup_class(self):
self.port = 5543
discriminator = random.randint(0, 4095)
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])
# TODO: Determine if we want these logs cooked or pushed to somewhere else
logging.info("Starting application to acts mock a server portion of TH_FSA")
self.app_process = subprocess.Popen(cmd, bufsize=0, shell=True)
self.app_process = subprocess.Popen(cmd)
logging.info("Started application to acts mock a server portion of TH_FSA")
time.sleep(3)

Expand Down

0 comments on commit 9c778ce

Please sign in to comment.