Mercurial > hg
comparison tests/run-tests.py @ 48861:7265e5b1d18e
tests: always encode session
Differential Revision: https://phab.mercurial-scm.org/D12239
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 13:22:12 -0700 |
parents | 4cea98b32d95 |
children | 2336e79a119c |
comparison
equal
deleted
inserted
replaced
48860:4cea98b32d95 | 48861:7265e5b1d18e |
---|---|
1792 script.append(b'%s %d 0\n' % (salt, line)) | 1792 script.append(b'%s %d 0\n' % (salt, line)) |
1793 else: | 1793 else: |
1794 script.append(b'echo %s %d $?\n' % (salt, line)) | 1794 script.append(b'echo %s %d $?\n' % (salt, line)) |
1795 | 1795 |
1796 activetrace = [] | 1796 activetrace = [] |
1797 session = str(uuid.uuid4()) | 1797 session = str(uuid.uuid4()).encode('ascii') |
1798 if PYTHON3: | |
1799 session = session.encode('ascii') | |
1800 hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or os.getenv( | 1798 hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or os.getenv( |
1801 'HGCATAPULTSERVERPIPE' | 1799 'HGCATAPULTSERVERPIPE' |
1802 ) | 1800 ) |
1803 | 1801 |
1804 def toggletrace(cmd=None): | 1802 def toggletrace(cmd=None): |