summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-09-26 16:09:30 -0400
committerSpencer T Brody <spencer@10gen.com>2012-09-28 16:21:13 -0400
commitf0748473dbc00a197b7a886a5002410d15974d2a (patch)
tree4885ba1cd6f62b5be15246079d3c9040d7b8c9e7 /jstests/disk
parent736e1b29a68b83c40ed79cabfd9fccbb28047a0e (diff)
downloadmongo-f0748473dbc00a197b7a886a5002410d15974d2a.tar.gz
SERVER-4237 Make directoryperdb.js use startMongodTest instead of startMongoProgram so running with auth works
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/directoryperdb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/disk/directoryperdb.js b/jstests/disk/directoryperdb.js
index c29dea0cf97..4c2fac4ece3 100644
--- a/jstests/disk/directoryperdb.js
+++ b/jstests/disk/directoryperdb.js
@@ -3,7 +3,7 @@ var baseName = "directoryperdb"
port = allocatePorts( 1 )[ 0 ];
dbpath = "/data/db/" + baseDir + "/";
-var m = startMongod( "--directoryperdb", "--port", port, "--dbpath", dbpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" );
+var m = startMongodTest(port, baseDir, false, {directoryperdb : "", nohttpinterface : "", bind_ip : "127.0.0.1"});
db = m.getDB( baseName );
db[ baseName ].save( {} );
assert.eq( 1, db[ baseName ].count() , "A : " + tojson( db[baseName].find().toArray() ) );
@@ -52,7 +52,7 @@ externalPath = "/data/db/" + baseDir + "_external/";
runMongoProgram( "mongodump", "--dbpath", dbpath, "--directoryperdb", "--out", externalPath );
resetDbpath( dbpath );
runMongoProgram( "mongorestore", "--dbpath", dbpath, "--directoryperdb", "--dir", externalPath );
-m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" );
+m = startMongodTest(port, baseDir, true, {directoryperdb : "", nohttpinterface : "", bind_ip : "127.0.0.1"});
db = m.getDB( baseName );
checkDir( dbpath );
assert.eq( 1, db[ baseName ].count() , "C" );