90 terminate(p) |
90 terminate(p) |
91 threading.Thread(target=t).start() |
91 threading.Thread(target=t).start() |
92 |
92 |
93 return p |
93 return p |
94 |
94 |
95 SKIPPED_PREFIX = 'skipped: ' |
|
96 FAILED_PREFIX = 'hghave check failed: ' |
|
97 PYTHON = sys.executable.replace('\\', '/') |
95 PYTHON = sys.executable.replace('\\', '/') |
98 IMPL_PATH = 'PYTHONPATH' |
96 IMPL_PATH = 'PYTHONPATH' |
99 if 'java' in sys.platform: |
97 if 'java' in sys.platform: |
100 IMPL_PATH = 'JYTHONPATH' |
98 IMPL_PATH = 'JYTHONPATH' |
101 |
99 |
625 return escapesub(escapef, s) |
623 return escapesub(escapef, s) |
626 |
624 |
627 class TTest(Test): |
625 class TTest(Test): |
628 """A "t test" is a test backed by a .t file.""" |
626 """A "t test" is a test backed by a .t file.""" |
629 |
627 |
|
628 SKIPPED_PREFIX = 'skipped: ' |
|
629 FAILED_PREFIX = 'hghave check failed: ' |
|
630 |
630 def _run(self, testtmp, replacements, env): |
631 def _run(self, testtmp, replacements, env): |
631 f = open(self._path) |
632 f = open(self._path) |
632 lines = f.readlines() |
633 lines = f.readlines() |
633 f.close() |
634 f.close() |
634 |
635 |
900 * the missing/unknown features |
901 * the missing/unknown features |
901 * the features for which existence check failed''' |
902 * the features for which existence check failed''' |
902 missing = [] |
903 missing = [] |
903 failed = [] |
904 failed = [] |
904 for line in lines: |
905 for line in lines: |
905 if line.startswith(SKIPPED_PREFIX): |
906 if line.startswith(TTest.SKIPPED_PREFIX): |
906 line = line.splitlines()[0] |
907 line = line.splitlines()[0] |
907 missing.append(line[len(SKIPPED_PREFIX):]) |
908 missing.append(line[len(TTest.SKIPPED_PREFIX):]) |
908 elif line.startswith(FAILED_PREFIX): |
909 elif line.startswith(TTest.FAILED_PREFIX): |
909 line = line.splitlines()[0] |
910 line = line.splitlines()[0] |
910 failed.append(line[len(FAILED_PREFIX):]) |
911 failed.append(line[len(TTest.FAILED_PREFIX):]) |
911 |
912 |
912 return missing, failed |
913 return missing, failed |
913 |
914 |
914 wifexited = getattr(os, "WIFEXITED", lambda x: False) |
915 wifexited = getattr(os, "WIFEXITED", lambda x: False) |
915 def run(cmd, wd, options, replacements, env, abort): |
916 def run(cmd, wd, options, replacements, env, abort): |