Mercurial > hg
comparison tests/run-tests.py @ 44451:9803b374389a stable
tests: fix isinstance test of wrong variable
3086a8627b2970cd7fbf49bc69413c08c68d5514 changed self._case to be a list, but
it was forgotten to adjust this line.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Mon, 09 Mar 2020 01:11:59 +0100 |
parents | 6d3b67a837a6 |
children | a08bbdf839ae fb7da4759a18 |
comparison
equal
deleted
inserted
replaced
44450:7d5455b988ec | 44451:9803b374389a |
---|---|
1768 } | 1768 } |
1769 ) | 1769 ) |
1770 | 1770 |
1771 if self._case: | 1771 if self._case: |
1772 casestr = b'#'.join(self._case) | 1772 casestr = b'#'.join(self._case) |
1773 if isinstance(self._case, str): | 1773 if isinstance(casestr, str): |
1774 quoted = shellquote(casestr) | 1774 quoted = shellquote(casestr) |
1775 else: | 1775 else: |
1776 quoted = shellquote(casestr.decode('utf8')).encode('utf8') | 1776 quoted = shellquote(casestr.decode('utf8')).encode('utf8') |
1777 script.append(b'TESTCASE=%s\n' % quoted) | 1777 script.append(b'TESTCASE=%s\n' % quoted) |
1778 script.append(b'export TESTCASE\n') | 1778 script.append(b'export TESTCASE\n') |