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