Mercurial > hg
comparison tests/run-tests.py @ 43982:bd3fa45c0662
run-tests: ensure the script exits when it fails to change directories
Caught by PyCharm as an unused variable assignment. This regressed in
c496e8c14b9e.
Differential Revision: https://phab.mercurial-scm.org/D7750
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 16:57:28 -0500 |
parents | e8a3bbffdc7d |
children | 6d3b67a837a6 |
comparison
equal
deleted
inserted
replaced
43981:414cb20e241e | 43982:bd3fa45c0662 |
---|---|
1837 addsalt(n, False) | 1837 addsalt(n, False) |
1838 rawcmd = l[4:] | 1838 rawcmd = l[4:] |
1839 cmd = rawcmd.split() | 1839 cmd = rawcmd.split() |
1840 toggletrace(rawcmd) | 1840 toggletrace(rawcmd) |
1841 if len(cmd) == 2 and cmd[0] == b'cd': | 1841 if len(cmd) == 2 and cmd[0] == b'cd': |
1842 l = b' $ cd %s || exit 1\n' % cmd[1] | 1842 rawcmd = b'cd %s || exit 1\n' % cmd[1] |
1843 script.append(rawcmd) | 1843 script.append(rawcmd) |
1844 elif l.startswith(b' > '): # continuations | 1844 elif l.startswith(b' > '): # continuations |
1845 after.setdefault(prepos, []).append(l) | 1845 after.setdefault(prepos, []).append(l) |
1846 script.append(l[4:]) | 1846 script.append(l[4:]) |
1847 elif l.startswith(b' '): # results | 1847 elif l.startswith(b' '): # results |