Skip Menu |

This queue is for tickets about the MySQL-Util CPAN distribution.

Report information
The Basics
Id: 127712
Status: resolved
Priority: 0/
Queue: MySQL-Util

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.29
  • 0.30
  • 0.31
Fixed in: 0.34



Subject: t/20-util.t fails if mysql does not exist
See subject. Test log: ... sh: 1: mysql: not found Died at t/testlib.pl line 179. sh: 1: mysql: not found Died at t/testlib.pl line 179. END failed--call queue aborted. # Looks like your test exited with 22 just after 1. t/20-util.t ....... Dubious, test returned 22 (wstat 5632, 0x1600) All 1 subtests passed ... Maybe the test should be skipped if mysql is not present, or alternatively the non-existence of mysql should be detected during Makefile.PL, so a "NA" report could be sent to CPAN Testers.
On 2018-11-18 05:04:09, SREZIC wrote: Show quoted text
> See subject. Test log: > > ... > sh: 1: mysql: not found > Died at t/testlib.pl line 179. > sh: 1: mysql: not found > Died at t/testlib.pl line 179. > END failed--call queue aborted. > # Looks like your test exited with 22 just after 1. > t/20-util.t ....... > Dubious, test returned 22 (wstat 5632, 0x1600) > All 1 subtests passed > ... > > > Maybe the test should be skipped if mysql is not present, or > alternatively the non-existence of mysql should be detected during > Makefile.PL, so a "NA" report could be sent to CPAN Testers.
Another problematic case is when a mysql client is available, but there's no locally running mysql server: ... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Died at t/testlib.pl line 179. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Died at t/testlib.pl line 179. END failed--call queue aborted. # Looks like your test exited with 22 just after 1. t/20-util.t ....... Dubious, test returned 22 (wstat 5632, 0x1600) All 1 subtests passed ...
fixed