New feature in simplify-mysqltest.pl utility script: Specify basedir2 in order to simplify a test case based on result differences between two servers.
After a simplification attempt, if there is still a difference, simplification succeeded and will try to continue.
If there is no longer a difference, the issue is not reproduced, and the simplifier either continues down a different path or stops.
Such simplification currently requires valid mysqltest/SQL statements so that .result files are produced, so one may need to convert multi-line statements into single-line statements in the original test before simplifying, until some better handling of this is implemented.
This was first used in relation to MySQL bug#49771.