Bug #45532 MTR displays wrong option name 'print_testcases' in usage text
Submitted: 16 Jun 2009 14:10 Modified: 20 Dec 2009 0:48
Reporter: John Embretsen Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.1.36 (bzr: mysql-5.1-mtr) OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any

[16 Jun 2009 14:10] John Embretsen
Description:
cd mysql-test
perl mysql-test-run.pl --help

yields among other things:

print_testcases       Don't run the tests but print details about all the
                        selected tests, in the order they would be run.

It turns out that the option is called "print-testcases", not "print_testcases".

How to repeat:
Wrong option name, as shown in help text:

$ perl ./mysql-test-run.pl --print_testcases alias
Logging: ./mysql-test-run.pl  --print_testcases alias
090616 16:03:17 [Note] Plugin 'FEDERATED' is disabled.
090616 16:03:17 [Warning] Forcing shutdown of 1 plugins
MySQL Version 5.1.36
Invalid option "--print_testcases"

----------------------

Correct option name:

$ perl ./mysql-test-run.pl --print-testcases alias
Logging: ./mysql-test-run.pl  --print-testcases alias
090616 16:03:11 [Note] Plugin 'FEDERATED' is disabled.
090616 16:03:11 [Warning] Forcing shutdown of 1 plugins
MySQL Version 5.1.36
Checking supported features...
 - skipping ndbcluster, mysqld not compiled with ndbcluster
 - skipping SSL, mysqld not compiled with SSL
 - binaries are debug compiled
Collecting tests...
============================================================
[main.alias]
 shortname= alias
 template_path= include/default_my.cnf
 slave_opt= [--loose-skip-innodb, --loose-skip-log-bin]
 name= main.alias
 master_opt= [--loose-skip-innodb, --loose-skip-log-bin]
 result_file= /export/home/tmp/je159969/mysql-dev/bzr-repos/mysql-5.1-mtr/mysql-test/r/alias.result
 path= /export/home/tmp/je159969/mysql-dev/bzr-repos/mysql-5.1-mtr/mysql-test/t/alias.test

============================================================

Suggested fix:
Fix the MTR usage/help text to display the correct option name. Probably a one-liner fix.
[17 Jun 2009 9:12] 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/76428

2803 Bjorn Munch	2009-06-17
      Bug #45532 MTR displays wrong option name 'print_testcases' in usage text
      Fix the name....
      modified:
        mysql-test/mysql-test-run.pl
[17 Jun 2009 10:08] John Embretsen
Patch looks good to me. With the patch, help text matches the real behavior.
[22 Jun 2009 14:31] Bjørn Munch
Pushed to 5.1-mtr
[22 Jun 2009 18:21] 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/76858

2805 Bjorn Munch	2009-06-22
      Bug #45532 MTR displays wrong option name 'print_testcases' in usage text
      Fix the name....
      modified:
        mysql-test/mysql-test-run.pl
[3 Sep 2009 17:11] Bugs System
Pushed into 5.1.40 (revid:bjorn.munch@sun.com-20090903170735-679d64zp580wl39j) (version source revid:bjorn.munch@sun.com-20090903170735-679d64zp580wl39j) (merge vers: 5.1.40) (pib:11)
[4 Sep 2009 0:53] Paul DuBois
Test suite change. No changelog entry needed.

Setting report to NDI pending push into 5.4.x.
[30 Sep 2009 8:17] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20090929093622-1mooerbh12e97zux) (version source revid:alik@sun.com-20090922182109-vs5ign07cwht12z6) (merge vers: 6.0.14-alpha) (pib:11)
[30 Sep 2009 8:20] Bugs System
Pushed into 5.4.5-beta (revid:alik@sun.com-20090925094254-tjl9eajkzwzgthoe) (version source revid:alik@sun.com-20090922142453-x275o41whpyezh4q) (merge vers: 5.4.4-beta) (pib:11)
[30 Sep 2009 19:43] Paul DuBois
Test suite change. No changelog entry needed.
[18 Dec 2009 10:27] Bugs System
Pushed into 5.1.41-ndb-7.1.0 (revid:jonas@mysql.com-20091218102229-64tk47xonu3dv6r6) (version source revid:jonas@mysql.com-20091218095730-26gwjidfsdw45dto) (merge vers: 5.1.41-ndb-7.1.0) (pib:15)
[18 Dec 2009 10:43] Bugs System
Pushed into 5.1.41-ndb-6.2.19 (revid:jonas@mysql.com-20091218100224-vtzr0fahhsuhjsmt) (version source revid:jonas@mysql.com-20091217101452-qwzyaig50w74xmye) (merge vers: 5.1.41-ndb-6.2.19) (pib:15)
[18 Dec 2009 10:58] Bugs System
Pushed into 5.1.41-ndb-6.3.31 (revid:jonas@mysql.com-20091218100616-75d9tek96o6ob6k0) (version source revid:jonas@mysql.com-20091217154335-290no45qdins5bwo) (merge vers: 5.1.41-ndb-6.3.31) (pib:15)
[18 Dec 2009 11:13] Bugs System
Pushed into 5.1.41-ndb-7.0.11 (revid:jonas@mysql.com-20091218101303-ga32mrnr15jsa606) (version source revid:jonas@mysql.com-20091218064304-ezreonykd9f4kelk) (merge vers: 5.1.41-ndb-7.0.11) (pib:15)