0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

allow sharding and rs tests to respect smoke --nopreallocj setting

This commit is contained in:
gregs 2011-08-03 17:35:43 -04:00
parent 5bd4f5885c
commit 16955912bc
2 changed files with 6 additions and 2 deletions

View File

@ -81,6 +81,7 @@ startMongodTest = function (port, dirname, restart, extraOptions ) {
};
if( jsTestOptions().noJournal ) options["nojournal"] = ""
if( jsTestOptions().noJournalPrealloc ) options["nopreallocj"] = ""
if ( extraOptions )
Object.extend( options , extraOptions );
@ -920,6 +921,7 @@ ReplTest.prototype.getOptions = function( master , extra , putBinaryFirst, norep
a.push( this.getPath( master ) );
if( jsTestOptions().noJournal ) a.push( "--nojournal" )
if( jsTestOptions().noJournalPrealloc ) a.push( "--nopreallocj" )
if ( !norepl ) {
if ( master ){
@ -1228,7 +1230,8 @@ ReplSetTest.prototype.getOptions = function( n , extra , putBinaryFirst ){
a.push( "--dbpath" );
a.push( this.getPath( ( n.host ? this.getNodeId( n ) : n ) ) );
if( jsTestOptions.noJournal ) a.push( "--nojournal" )
if( jsTestOptions().noJournal ) a.push( "--nojournal" )
if( jsTestOptions().noJournalPrealloc ) a.push( "--nopreallocj" )
for ( var k in extra ){
var v = extra[k];

View File

@ -970,7 +970,8 @@ jsTestPath = function(){
}
jsTestOptions = function(){
if( TestData ) return { noJournal : TestData.noJournal }
if( TestData ) return { noJournal : TestData.noJournal,
noJournalPrealloc : TestData.noJournalPrealloc }
return {}
}