File tree 3 files changed +18
-9
lines changed
3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,14 @@ async def setup_class(self):
53
53
self .port = 5543
54
54
discriminator = random .randint (0 , 4095 )
55
55
passcode = 20202021
56
- app_args = f'--secured-device-port { self .port } --discriminator { discriminator } --passcode { passcode } --KVS { self .kvs } '
57
- cmd = f'{ app } { app_args } '
56
+ cmd = [app ]
57
+ cmd .extend (['--secured-device-port' , str (5543 )])
58
+ cmd .extend (['--discriminator' , str (discriminator )])
59
+ cmd .extend (['--passcode' , str (passcode )])
60
+ cmd .extend (['--KVS' , self .kvs ])
58
61
# TODO: Determine if we want these logs cooked or pushed to somewhere else
59
62
logging .info ("Starting TH_SERVER" )
60
- self .app_process = subprocess .Popen (cmd , bufsize = 0 , shell = True )
63
+ self .app_process = subprocess .Popen (cmd )
61
64
logging .info ("TH_SERVER started" )
62
65
time .sleep (3 )
63
66
Original file line number Diff line number Diff line change @@ -52,11 +52,14 @@ async def setup_class(self):
52
52
self .port = 5543
53
53
discriminator = random .randint (0 , 4095 )
54
54
passcode = 20202021
55
- app_args = f'--secured-device-port { self .port } --discriminator { discriminator } --passcode { passcode } --KVS { self .kvs } '
56
- cmd = f'{ app } { app_args } '
55
+ cmd = [app ]
56
+ cmd .extend (['--secured-device-port' , str (5543 )])
57
+ cmd .extend (['--discriminator' , str (discriminator )])
58
+ cmd .extend (['--passcode' , str (passcode )])
59
+ cmd .extend (['--KVS' , self .kvs ])
57
60
# TODO: Determine if we want these logs cooked or pushed to somewhere else
58
61
logging .info ("Starting TH_SERVER" )
59
- self .app_process = subprocess .Popen (cmd , bufsize = 0 , shell = True )
62
+ self .app_process = subprocess .Popen (cmd )
60
63
logging .info ("TH_SERVER started" )
61
64
time .sleep (3 )
62
65
Original file line number Diff line number Diff line change @@ -45,11 +45,14 @@ async def setup_class(self):
45
45
self .port = 5543
46
46
discriminator = random .randint (0 , 4095 )
47
47
passcode = 20202021
48
- app_args = f'--secured-device-port { self .port } --discriminator { discriminator } --passcode { passcode } --KVS { self .kvs } '
49
- cmd = f'{ app } { app_args } '
48
+ cmd = [app ]
49
+ cmd .extend (['--secured-device-port' , str (5543 )])
50
+ cmd .extend (['--discriminator' , str (discriminator )])
51
+ cmd .extend (['--passcode' , str (passcode )])
52
+ cmd .extend (['--KVS' , self .kvs ])
50
53
# TODO: Determine if we want these logs cooked or pushed to somewhere else
51
54
logging .info ("Starting application to acts mock a server portion of TH_FSA" )
52
- self .app_process = subprocess .Popen (cmd , bufsize = 0 , shell = True )
55
+ self .app_process = subprocess .Popen (cmd )
53
56
logging .info ("Started application to acts mock a server portion of TH_FSA" )
54
57
time .sleep (3 )
55
58
You can’t perform that action at this time.
0 commit comments