Changeset 758

Show
Ignore:
Timestamp:
03/07/07 02:56:53 (2 years ago)
Author:
hachi
Message:

Broken test for filepaths plugin, need a way to enable a plugin at mogdbsetup time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/filepaths-20070306/server/lib/MogileFS/Config.pm

    r735 r758  
    9696                             'no_schema_check' => \$cmdline{no_schema_check}, 
    9797                             'old_repl_compat=i' => \$cmdline{old_repl_compat}, 
     98                             'plugins=s@'        => \$cmdline{plugins}, 
    9899                             ); 
    99100 
     
    162163 
    163164    # now load plugins 
    164     load_plugins($cfgfile{plugins}) if $cfgfile{plugins}; 
     165    my @plugins; 
     166    push @plugins, $cfgfile{plugins}    if $cfgfile{plugins}; 
     167    push @plugins, @{$cmdline{plugins}} if $cmdline{plugins}; 
     168 
     169    foreach my $plugin (@plugins) { 
     170        load_plugins($plugin); 
     171    } 
    165172 
    166173    choose_value('user', ''); 
  • branches/filepaths-20070306/server/t/lib/mogtestlib.pl

    r701 r758  
    3131sub create_temp_tracker { 
    3232    my $sto = shift; 
     33    my $opts = shift || []; 
    3334 
    3435    my $pid = fork(); 
     
    5152             "--dsn=" . $sto->dsn, 
    5253             "--dbuser=" . $sto->user, 
    53              "--dbpass=" . $sto->pass); 
     54             "--dbpass=" . $sto->pass, 
     55             @$opts, 
     56             ); 
    5457    } 
    5558