Show More
@@ -2070,15 +2070,16 b' class TextTestRunner(unittest.TextTestRu' | |||||
2070 | savetimes(self._runner._outputdir, result) |
|
2070 | savetimes(self._runner._outputdir, result) | |
2071 |
|
2071 | |||
2072 | if failed and self._runner.options.known_good_rev: |
|
2072 | if failed and self._runner.options.known_good_rev: | |
|
2073 | bisectcmd = ['hg', 'bisect'] | |||
2073 | def nooutput(args): |
|
2074 | def nooutput(args): | |
2074 | p = subprocess.Popen(args, stderr=subprocess.STDOUT, |
|
2075 | p = subprocess.Popen(args, stderr=subprocess.STDOUT, | |
2075 | stdout=subprocess.PIPE) |
|
2076 | stdout=subprocess.PIPE) | |
2076 | p.stdout.read() |
|
2077 | p.stdout.read() | |
2077 | p.wait() |
|
2078 | p.wait() | |
2078 | for test, msg in result.failures: |
|
2079 | for test, msg in result.failures: | |
2079 |
nooutput([ |
|
2080 | nooutput(bisectcmd + ['--reset']), | |
2080 |
nooutput([ |
|
2081 | nooutput(bisectcmd + ['--bad', '.']) | |
2081 |
nooutput([ |
|
2082 | nooutput(bisectcmd + ['--good', | |
2082 | self._runner.options.known_good_rev]) |
|
2083 | self._runner.options.known_good_rev]) | |
2083 | # TODO: we probably need to forward more options |
|
2084 | # TODO: we probably need to forward more options | |
2084 | # that alter hg's behavior inside the tests. |
|
2085 | # that alter hg's behavior inside the tests. | |
@@ -2088,7 +2089,7 b' class TextTestRunner(unittest.TextTestRu' | |||||
2088 | opts += ' --with-hg=%s ' % shellquote(withhg) |
|
2089 | opts += ' --with-hg=%s ' % shellquote(withhg) | |
2089 | rtc = '%s %s %s %s' % (sys.executable, sys.argv[0], opts, |
|
2090 | rtc = '%s %s %s %s' % (sys.executable, sys.argv[0], opts, | |
2090 | test) |
|
2091 | test) | |
2091 |
sub = subprocess.Popen([ |
|
2092 | sub = subprocess.Popen(bisectcmd + ['--command', rtc], | |
2092 | stderr=subprocess.STDOUT, |
|
2093 | stderr=subprocess.STDOUT, | |
2093 | stdout=subprocess.PIPE) |
|
2094 | stdout=subprocess.PIPE) | |
2094 | data = sub.stdout.read() |
|
2095 | data = sub.stdout.read() |
General Comments 0
You need to be logged in to leave comments.
Login now