Bug #36041 | mysql-test-run doesn't seem to string match 100% effectively on Windows | ||
---|---|---|---|
Submitted: | 13 Apr 2008 19:18 | Modified: | 6 May 2008 18:40 |
Reporter: | Patrick Crews | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tests: Server | Severity: | S3 (Non-critical) |
Version: | 5.1 | OS: | Windows |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
Tags: | mysql-test-run, Tests, windows |
[13 Apr 2008 19:18]
Patrick Crews
[15 Apr 2008 14:16]
Patrick Crews
Update to the bug: 1) We can disregard the identical test results issue. Further investigation has shown that this is a case of '\n' vs. '\r' for line terminators. Will adjust the offending tests to correct this problem. 2) The path issue is still present. While a patch for another bug corrected the failing tests that first brought this to light, --replace_result still fails when a path is involved. As an example, put the following into a .test file, run ./mysql-test-run.pl --record <test_name> and observe the results on a Windows System: --echo $MYISAMPACK --replace_result $MYISAMPACK myisampack_new_val --exec $MYISAMPACK -V This should result in myisampack_new_val Ver <number> for <system> on <architecture> Currently it returns <full_path_to_myisampack.exe> Ver <number> for <system> on <architecture> Suspect that this is due to the difference in Windows path separator / vs \.
[29 Apr 2008 16:09]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/46197 ChangeSet@1.2572, 2008-04-29 19:08:52+03:00, gkodinov@magare.gmz +3 -0 Bug #36041: mysql-test-run doesn't seem to string match 100% effectively on Windows The mysqltest docs state that the 'replace_result' command doesn't perform any escape processing. However the current implementation was processing backslash escapes in the from/to strings. This prevents replacing e.g. patch on windows (where backslash is used as a path separator). Fixed by removing the backslash escape processing from 'replace_result'.
[30 Apr 2008 16:59]
Patrick Crews
Ok to push.
[6 May 2008 0:29]
Bugs System
Pushed into 5.1.25-rc
[6 May 2008 0:32]
Bugs System
Pushed into 6.0.6-alpha
[6 May 2008 18:40]
Paul DuBois
Noted in 5.1.25, 6.0.6 changelogs. mysqltest was performing escape processing for the --replace_result command, which it should not have been.