mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: indent _processoutput to aid readability for next patch
The next commit will loop over the expected[pos] list, this change makes that change easier to review.
This commit is contained in:
parent
4e41a3b214
commit
7d5e3a8dc0
@ -1111,21 +1111,21 @@ class TTest(Test):
|
||||
el = None
|
||||
if expected.get(pos, None):
|
||||
el = expected[pos].pop(0)
|
||||
|
||||
r = TTest.linematch(el, lout)
|
||||
if isinstance(r, str):
|
||||
if r == '+glob':
|
||||
lout = el[:-1] + ' (glob)\n'
|
||||
r = '' # Warn only this line.
|
||||
elif r == '-glob':
|
||||
lout = ''.join(el.rsplit(' (glob)', 1))
|
||||
r = '' # Warn only this line.
|
||||
elif r == "retry":
|
||||
postout.append(b' ' + el)
|
||||
continue
|
||||
else:
|
||||
log('\ninfo, unknown linematch result: %r\n' % r)
|
||||
r = False
|
||||
if True:
|
||||
r = TTest.linematch(el, lout)
|
||||
if isinstance(r, str):
|
||||
if r == '+glob':
|
||||
lout = el[:-1] + ' (glob)\n'
|
||||
r = '' # Warn only this line.
|
||||
elif r == '-glob':
|
||||
lout = ''.join(el.rsplit(' (glob)', 1))
|
||||
r = '' # Warn only this line.
|
||||
elif r == "retry":
|
||||
postout.append(b' ' + el)
|
||||
continue
|
||||
else:
|
||||
log('\ninfo, unknown linematch result: %r\n' % r)
|
||||
r = False
|
||||
if r:
|
||||
postout.append(b' ' + el)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user