Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG7265e5b1d18e: tests: always encode session
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
Alphare |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | tests/run-tests.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
dcbad97ce878 | e4d13a029da5 | Gregory Szorc | Feb 20 2022, 3:22 PM |
def addsalt(line, inpython): | def addsalt(line, inpython): | ||||
if inpython: | if inpython: | ||||
script.append(b'%s %d 0\n' % (salt, line)) | script.append(b'%s %d 0\n' % (salt, line)) | ||||
else: | else: | ||||
script.append(b'echo %s %d $?\n' % (salt, line)) | script.append(b'echo %s %d $?\n' % (salt, line)) | ||||
activetrace = [] | activetrace = [] | ||||
session = str(uuid.uuid4()) | session = str(uuid.uuid4()).encode('ascii') | ||||
if PYTHON3: | |||||
session = session.encode('ascii') | |||||
hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or os.getenv( | hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or os.getenv( | ||||
'HGCATAPULTSERVERPIPE' | 'HGCATAPULTSERVERPIPE' | ||||
) | ) | ||||
def toggletrace(cmd=None): | def toggletrace(cmd=None): | ||||
if not hgcatapult or hgcatapult == os.devnull: | if not hgcatapult or hgcatapult == os.devnull: | ||||
return | return | ||||