[MDEV-26991] CURRENT_TEST: main.mysql_binary_zero_insert 'grep' is not recognized as an internal or external command, operable program or batch file. Created: 2021-11-07  Updated: 2021-11-11  Resolved: 2021-11-11

Status: Closed
Project: MariaDB Server
Component/s: Platform Windows, Tests
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
Fix Version/s: 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Brandon Nesterenko
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-25444 mysql --binary-mode is not able to re... Closed

 Description   

main.mysql_binary_zero_insert            [ fail ]
        Test ended at 2021-11-07 18:30:21
 
CURRENT_TEST: main.mysql_binary_zero_insert
'grep' is not recognized as an internal or external command,
operable program or batch file.
mysqltest: At line 118: exec of 'C:\work\server\xxx\client\\Debug\mysqldump.exe --defaults-file=C:/work/server/xxx/mysql-test/var/my.cnf --defaults-group-suffix=.1 test tb --hex-blob | grep -A8 INSERT > C:/work/server/xxx/mysql-test/var/tmp/dump.sql' failed, error: 255, status: 255, errno: 2
Output from before failure:
# MYSQL_DUMP test tb --hex-blob | grep INSERT > MYSQL_TMP_DIR/dump.sql

Please, no tests with "exec grep" , without checking if grep indeed exists on the test machine.

If possible do
--source include/search_pattern_in_file.inc

Or replace grep with perl invocation, perl exists on the test box, obviously.
If even this is not possible (which I doubt), exclude this test from Windows.

The bug possibly exists prior to 10.7, I did not check.



 Comments   
Comment by Brandon Nesterenko [ 2021-11-11 ]

Pushed fix into 10.2.

Manual cherry-picking of the patch resulted in a merge conflict in 10.7, where 224f7a9 provides the resolution to this conflict.

Generated at Thu Feb 08 09:49:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.