Skip to content

Commit fa3b379

Browse files
author
MarcoFalke
committed
[qa] pull-tester: Fix assertion and check for run_parallel
1 parent fa32465 commit fa3b379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qa/pull-tester/rpc-tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def runtests():
191191
if coverage:
192192
flags.append(coverage.flag)
193193

194-
if len(test_list) > 1:
194+
if len(test_list) > 1 and run_parallel > 1:
195195
# Populate cache
196196
subprocess.check_output([RPC_TESTS_DIR + 'create_cache.py'] + flags)
197197

@@ -251,7 +251,7 @@ def get_next(self):
251251
stdout=subprocess.PIPE,
252252
stderr=subprocess.PIPE)))
253253
if not self.jobs:
254-
raise IndexError('%s from empty list' % __name__)
254+
raise IndexError('pop from empty list')
255255
while True:
256256
# Return first proc that finishes
257257
time.sleep(.5)

0 commit comments

Comments
 (0)