Issue #24751: Fix running regrtest with '-w' flag in case of test failures.
Also fixes reporting of tests that change environment when there are no test failures.
This commit is contained in:
parent
1485054a23
commit
ce698f3aa2
|
@ -624,14 +624,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
for time, test in test_times[:10]:
|
||||
print "%s: %.1fs" % (test, time)
|
||||
if bad:
|
||||
bad = set(bad) - set(environment_changed)
|
||||
if bad:
|
||||
print count(len(bad), "test"), "failed:"
|
||||
printlist(bad)
|
||||
if environment_changed:
|
||||
print "{} altered the execution environment:".format(
|
||||
count(len(environment_changed), "test"))
|
||||
printlist(environment_changed)
|
||||
print count(len(bad), "test"), "failed:"
|
||||
printlist(bad)
|
||||
if environment_changed:
|
||||
print "{} altered the execution environment:".format(
|
||||
count(len(environment_changed), "test"))
|
||||
printlist(environment_changed)
|
||||
if skipped and not quiet:
|
||||
print count(len(skipped), "test"), "skipped:"
|
||||
printlist(skipped)
|
||||
|
|
Loading…
Reference in New Issue