The fix is to backport
commit 6f8e0f19de4e60eca8f648a472174aba9baa00b2 Author: Terje Rosten <email address hidden> Date: Thu Feb 23 16:42:47 2017 +0100
Bug#25604587 BACKPORT BUG#24947217 TO 5.6 AND 5.7
Change is needed in MySQL 5.6 and 5.7 as well.
where "24947217" in 8.0 is
commit f5062cc8a9eeba7e546d72b42f7692efac281f11 Author: Steinar H. Gunderson <email address hidden> Date: Tue Oct 25 10:51:28 2016 +0200
Bug #24947217: MTR DOES NOT WORK WITH PERL 5.24.0
Add . to @INC to keep on working with newer Perl.
Change-Id: I2027f939a23ea4e0b5dc8078b66bfcfe012d8c8d
and
commit f9523b8c8fc66de4b2e3b870874d0dfb30f75d4d Author: Steinar H. Gunderson <email address hidden> Date: Wed Dec 14 14:18:48 2016 +0100
Add . to @INC to keep on working with newer Perl, also in "perl;" blocks in MTR scripts.
Also fix so that we use "require" instead of "do" in such blocks, since "do" quietly ignores errors, making everything much harder to debug.
Change-Id: I542a988c0b5663f2370ccffb4154ba50bd1c6957
The fix is to backport
commit 6f8e0f19de4e60e ca8f648a472174a ba9baa00b2
Author: Terje Rosten <email address hidden>
Date: Thu Feb 23 16:42:47 2017 +0100
Bug#25604587 BACKPORT BUG#24947217 TO 5.6 AND 5.7
Change is needed in MySQL 5.6 and 5.7 as well.
where "24947217" in 8.0 is
commit f5062cc8a9eeba7 e546d72b42f7692 efac281f11
Author: Steinar H. Gunderson <email address hidden>
Date: Tue Oct 25 10:51:28 2016 +0200
Bug #24947217: MTR DOES NOT WORK WITH PERL 5.24.0
Add . to @INC to keep on working with newer Perl.
Change-Id: I2027f939a23ea4 e0b5dc8078b66bf cfe012d8c8d
and
commit f9523b8c8fc66de 4b2e3b870874d0d fb30f75d4d
Author: Steinar H. Gunderson <email address hidden>
Date: Wed Dec 14 14:18:48 2016 +0100
Bug #24947217: MTR DOES NOT WORK WITH PERL 5.24.0
Add . to @INC to keep on working with newer Perl, also in
"perl;" blocks in MTR scripts.
Also fix so that we use "require" instead of "do" in such blocks,
since "do" quietly ignores errors, making everything much harder
to debug.
Change-Id: I542a988c0b5663 f2370ccffb4154b a50bd1c6957