Bug #45190 mtr should report some statistics even if aborting after too many tests fail
Submitted: 29 May 2009 11:27 Modified: 18 Jun 2009 15:32
Reporter: Bjørn Munch Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any

[29 May 2009 11:27] Bjørn Munch
Description:
When MTR aborts after too many (default 10) tests have failed, it doesn't print statictics like how many tests succeeded and how time was spent.

The latter leads to misleading numbers for time usage reported in PB2.

This statistics should be reported at least in this case, where a number of tests have indeed been run.

How to repeat:
Run some test suite where 10 or more tests fail, observe missing report
[2 Jun 2009 8:02] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/75428

2801 Bjorn Munch	2009-06-02
      Bug #45190 mtr should report some statistics even if aborting after too many tests fail
      Added calls to mtr_report_stats() also after timeout or too many failures
      modified:
        mysql-test/lib/mtr_report.pm
        mysql-test/mysql-test-run.pl
[2 Jun 2009 8:10] Bjørn Munch
Also added an optional argument to mtr_report_stats to prevent it from bailing out with mtr_error when we want to report timeout or too many failures
[3 Jun 2009 10:48] Bjørn Munch
Pushed to 5.1-mtr
[5 Jun 2009 8:04] Bugs System
Pushed into 5.1.36 (revid:bjorn.munch@sun.com-20090605074215-1d7l2reqdb9a0t0t) (version source revid:bjorn.munch@sun.com-20090605074215-1d7l2reqdb9a0t0t) (merge vers: 5.1.36) (pib:6)
[5 Jun 2009 15:32] Paul DuBois
Test suite changes. No changelog entry needed.

Setting report to NDI pending push into 6.0.x.
[17 Jun 2009 19:23] Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090616183122-chjzbaa30qopdra9) (version source revid:matthias.leich@sun.com-20090609174954-3ao9iz97nzrfg9yl) (merge vers: 5.4.4-alpha) (pib:11)
[18 Jun 2009 15:32] Paul DuBois
Test suite changes. No changelog entry needed.
[26 Aug 2009 13:46] Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[26 Aug 2009 13:46] Bugs System
Pushed into 5.1.37-ndb-6.3.27 (revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (version source revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[26 Aug 2009 13:48] Bugs System
Pushed into 5.1.37-ndb-6.2.19 (revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (version source revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (merge vers: 5.1.37-ndb-6.2.19) (pib:11)
[27 Aug 2009 16:32] Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090827163030-6o3kk6r2oua159hr) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)