not ok 15 - collect_mysql_info.t ps-mysqld-005.txt port 12345 (bug 1070916)
# Failed '"/tmp/12347/my.sandbox.cnf" == ""'
Problem was:
if test -n "$port" && grep -- "/mysqld.*--port=$port" "${file}" >/dev/null 2>&1 ; then
If a port was given but it wasn't found, then it just used the first MySQL instance whose cnf would then be reported. So in this test case port 12345's cnf is searched for, but not found, so the first instance is used, 12347, which creates a false-positive.
Before:
not ok 15 - collect_ mysql_info. t ps-mysqld-005.txt port 12345 (bug 1070916) 12347/my. sandbox. cnf" == ""'
# Failed '"/tmp/
Problem was:
if test -n "$port" && grep -- "/mysqld. *--port= $port" "${file}" >/dev/null 2>&1 ; then
If a port was given but it wasn't found, then it just used the first MySQL instance whose cnf would then be reported. So in this test case port 12345's cnf is searched for, but not found, so the first instance is used, 12347, which creates a false-positive.