Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 47a2e1b

Browse files
committed
Fix usage of --tor start flags
1 parent 3df2ea4 commit 47a2e1b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

qa/test_framework/test_framework.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def wait_for_init_success(process):
113113

114114
def start_node(self, node):
115115
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]
117117
else:
118118
args = [self.binary, "start", "-v", "-d", node["data_dir"], *self.options]
119119
process = subprocess.Popen(args, stdout=PIPE)
@@ -192,18 +192,14 @@ def main(self, options=["--disablewallet", "--testnet", "--disableexchangerates"
192192
parser.add_argument('-d', '--bitcoind', help="the bitcoind binary")
193193
parser.add_argument('-t', '--tempdir', action='store_true', help="temp directory to store the data folders", default="/tmp/")
194194
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')
196196
args = parser.parse_args(sys.argv[1:])
197197
self.binary = args.binary
198198
self.temp_dir = args.tempdir
199199
self.bitcoind = args.bitcoind
200200
self.cointype = args.cointype
201-
self.useTor = args.Tor
201+
self.useTor = args.tor
202202
self.options = options
203-
if args.Tor == "yes":
204-
self.useTor = True
205-
else:
206-
self.useTor = False
207203

208204
try:
209205
shutil.rmtree(os.path.join(self.temp_dir, "openbazaar-go"))

0 commit comments

Comments
 (0)