Bug #94000 mysqlpump_basic_zlib should skip and not die if no openssl zlib
Submitted: 22 Jan 2019 14:17 Modified: 29 Jan 2019 15:08
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Tests Severity:S7 (Test Cases)
Version:8.0.14 OS:Any
Assigned to: Terje Røsten CPU Architecture:Any

[22 Jan 2019 14:17] Laurynas Biveinis
On CentOS 6:

190121 16:00:05 [ 74%] main.mysqlpump_basic_zlib                w5  [ fail ]
        Test ended at 2019-01-21 16:00:05

CURRENT_TEST: main.mysqlpump_basic_zlib
mysqltest: At line 15: Test requires 'openssl zlib' sub command
safe_process[1736]: Child process: 1737, exit: 1

 - the logfile can be found in '/tmp/results/PS/mysql-test/var/log/main.mysqlpump_basic_zlib/mysqlpump_basic_zlib.log'

Retrying test main.mysqlpump_basic_zlib, attempt(2/3).

This is non-actionable, and as such, the test should skip, not die

How to repeat:
./mtr mysqlpump_basic_zlib

Suggested fix:
The test snippet is
# "openssl zlib" is known to be problematic on Debian and Ubuntu,
# and just skip if needed, on other platforms fail
  let OPENSSL_ZLIB_EXEC_LOG= $MYSQLTEST_VARDIR/log/openssl_zlib_exec_log.txt;
  --error 0, 1, 127
  --exec openssl zlib -help 2> $OPENSSL_ZLIB_EXEC_LOG
  let OPENSSL_ZLIB_VAR= $__error;
  --error 0,1
  --remove_file $OPENSSL_ZLIB_EXEC_LOG
    --source include/not_debian.inc
    --source include/not_ubuntu.inc
    --die Test requires 'openssl zlib' sub command

The fix is s/--die/--skip/
[22 Jan 2019 14:52] Terje Røsten

Thanks for report!

Problem seems to be "openssl zlib -help" don't work on el6, however 
"openssl zlib" works. Need a different way to check if "openssl zlib" subcommand
is present.
[29 Jan 2019 15:08] Paul DuBois
Posted by developer:
Fixed in 8.0.16.

Work was done for test suite. No changelog entry needed.