Bug #41308 Test main.ndb_autodiscover.test doesn't work on Windows due to 'grep' calls
Submitted: 8 Dec 2008 19:03
Reporter: Patrick Crews Email Updates:
Status: Verified Impact on me:
None 
Category:Tests: Server Severity:S3 (Non-critical)
Version:5.0+ OS:Microsoft Windows
Assigned to: CPU Architecture:Any
Tags: disabled, grep, ndb, Tests, unix calls, windows
Triage: Triaged: D3 (Medium)

[8 Dec 2008 19:03] Patrick Crews
Description:
Test main.ndb_autodiscover.test doesn't work on Windows due to 'grep' call:

t/ndb_autodiscover.test:547:--exec $NDB_TOOLS_DIR/ndb_drop_table --no-defaults -d test `$NDB_TOOLS_DIR/ndb_show_tables --no-defaults | grep BLOB` >> $NDB_TOOLS_OUTPUT 2>&1 || true

How to repeat:
Try to run this test on Windows without Cygwin or GNU utilities:

perl mysql-test-run.pl --force ndb_autodiscover

'grep' is not recognized as an internal or external command,
operable program or batch file.

Suggested fix:
Remove the dependence on grep while keeping the efficacy of the test.
[8 Dec 2008 21:12] Patrick Crews
Will be disabling this test on Windows as part of my fix for:
Bug #38831	11 test cases fail on Windows due to missing commands

Test will be disabled until the grep and any other Unix-isms can be removed.