Mercurial > hg
comparison tests/run-tests.py @ 28812:f1de5a612a74
run-tests: handle empty tests
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 05 Apr 2016 04:26:20 +0000 |
parents | 3bce3d2fd727 |
children | c5565fc8848d |
comparison
equal
deleted
inserted
replaced
28811:1a623585a658 | 28812:f1de5a612a74 |
---|---|
1056 if self._hgcommand != b'hg': | 1056 if self._hgcommand != b'hg': |
1057 script.append(b'alias hg="%s"\n' % self._hgcommand) | 1057 script.append(b'alias hg="%s"\n' % self._hgcommand) |
1058 if os.getenv('MSYSTEM'): | 1058 if os.getenv('MSYSTEM'): |
1059 script.append(b'alias pwd="pwd -W"\n') | 1059 script.append(b'alias pwd="pwd -W"\n') |
1060 | 1060 |
1061 n = 0 | |
1061 for n, l in enumerate(lines): | 1062 for n, l in enumerate(lines): |
1062 if not l.endswith(b'\n'): | 1063 if not l.endswith(b'\n'): |
1063 l += b'\n' | 1064 l += b'\n' |
1064 if l.startswith(b'#require'): | 1065 if l.startswith(b'#require'): |
1065 lsplit = l.split() | 1066 lsplit = l.split() |