@@ -113,7 +113,7 @@ def wait_for_init_success(process):
113
113
114
114
def start_node (self , node ):
115
115
if self .useTor :
116
- args = [self .binary , "start" , "tor" , "-v" , "-d" , node ["data_dir" ], * self .options ]
116
+ args = [self .binary , "start" , "-- tor" , "-v" , "-d" , node ["data_dir" ], * self .options ]
117
117
else :
118
118
args = [self .binary , "start" , "-v" , "-d" , node ["data_dir" ], * self .options ]
119
119
process = subprocess .Popen (args , stdout = PIPE )
@@ -192,18 +192,14 @@ def main(self, options=["--disablewallet", "--testnet", "--disableexchangerates"
192
192
parser .add_argument ('-d' , '--bitcoind' , help = "the bitcoind binary" )
193
193
parser .add_argument ('-t' , '--tempdir' , action = 'store_true' , help = "temp directory to store the data folders" , default = "/tmp/" )
194
194
parser .add_argument ('-c' , '--cointype' , help = "cointype to test" , default = "BTC" )
195
- parser .add_argument ('-T' , '--Tor ' , help = "use tor" , default = "no" )
195
+ parser .add_argument ('-T' , '--tor ' , help = "use tor in QA testing " , action = 'store_true' )
196
196
args = parser .parse_args (sys .argv [1 :])
197
197
self .binary = args .binary
198
198
self .temp_dir = args .tempdir
199
199
self .bitcoind = args .bitcoind
200
200
self .cointype = args .cointype
201
- self .useTor = args .Tor
201
+ self .useTor = args .tor
202
202
self .options = options
203
- if args .Tor == "yes" :
204
- self .useTor = True
205
- else :
206
- self .useTor = False
207
203
208
204
try :
209
205
shutil .rmtree (os .path .join (self .temp_dir , "openbazaar-go" ))
0 commit comments