|
Currently disk/repair.js fails when running with auth because it uses runMongoProgram to start a mongod so that they can get the return code when the process finishes. The problem is that when in auth mode runMongoProgram adds a -u and -p argument to allow tools that are started that way to connect to mongods running with auth, but mongod doesn't have a -u or -p argument.
The ideal fix would be to use startMongodTest which does the right thing with auth, but startMongodTest doesn't currently provide any way to check the return code of the mongod process when it terminates.
To fix this we should add a way to join() to a mongod process started with startMongodTest and get it's return code. Then we can change all disk and dur tests to use startMongodTest instead of runMongoProgram and can get the exit status that way.
|