Commit 33721fd4 authored by tomas@whalegate.ndb.mysql.com's avatar tomas@whalegate.ndb.mysql.com
Browse files

search for clone several step in the path name

parent fbf15908
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -409,13 +409,20 @@ sub main () {
    {
      # use default and add any extra_suites as defined
      $opt_suites= $opt_suites_default;
      my $ddd= basename(dirname($glob_mysql_test_dir));
      my $ccc= dirname($glob_mysql_test_dir);
      my $found= 0;
      while (!$found and !($ccc eq "/") and !($ccc eq ""))
      {
	my $ddd= basename($ccc);
	foreach my $extra_suite (@extra_suites)
	{
	  if ($extra_suite->[0] eq "$ddd")
	  {
	    $opt_suites= "$extra_suite->[1],$opt_suites";
	    $found= 1;
	  }
	}
	$ccc= dirname($ccc);
      }
    }