Mercurial > hg
comparison tests/run-tests.py @ 42867:eab66266180e
run-tests: clarify "l" variable as "out_rawline"
More explicit variable name never hurt.
(This is a gratuitous cleanup that I made while investigating a bug).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 14 Jun 2019 14:14:17 +0100 |
parents | 141bb77b606b |
children | 35ef1e957a62 |
comparison
equal
deleted
inserted
replaced
42866:141bb77b606b | 42867:eab66266180e |
---|---|
1609 if exitcode != 0: | 1609 if exitcode != 0: |
1610 warnonly = WARN_NO | 1610 warnonly = WARN_NO |
1611 | 1611 |
1612 pos = -1 | 1612 pos = -1 |
1613 postout = [] | 1613 postout = [] |
1614 for l in output: | 1614 for out_rawline in output: |
1615 lout, lcmd = l, None | 1615 lout, lcmd = out_rawline, None |
1616 if salt in l: | 1616 if salt in out_rawline: |
1617 lout, lcmd = l.split(salt, 1) | 1617 lout, lcmd = out_rawline.split(salt, 1) |
1618 | 1618 |
1619 while lout: | 1619 while lout: |
1620 if not lout.endswith(b'\n'): | 1620 if not lout.endswith(b'\n'): |
1621 lout += b' (no-eol)\n' | 1621 lout += b' (no-eol)\n' |
1622 | 1622 |