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:Windows
Assigned to: CPU Architecture:Any
Tags: disabled, grep, ndb, Tests, unix calls, windows

[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.
[9 Jan 2024 9:58] Magnus Blåudd
Posted by developer:
 
Test has been removed:

commit b8ed4ba47a3e05dcbdb9e8db69d1ff3d6917c376
Author: Magnus Blåudd <magnus.blaudd@oracle.com>
Date:   Fri Dec 22 10:39:05 2017 +0100

    WL#9185 MySQL Cluster support for new DD

    Remove test ndb_team.ndb_autodiscover which test that table should be
    resurrected after removing .frm files. There are no .frm files anymore
    and thus test is not relevant.