mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
fix for windows
This commit is contained in:
parent
91f745ac64
commit
1004452bfd
@ -4,8 +4,12 @@ t = new ToolTest( "files1" )
|
||||
|
||||
db = t.startDB();
|
||||
|
||||
t.runTool( "files" , "-d" , t.baseName , "put" , 'mongod' );
|
||||
md5 = md5sumFile('mongod');
|
||||
filename = 'mongod'
|
||||
if ( _isWindows() )
|
||||
filename += '.exe'
|
||||
|
||||
t.runTool( "files" , "-d" , t.baseName , "put" , filename );
|
||||
md5 = md5sumFile(filename);
|
||||
|
||||
file_obj = db.fs.files.findOne()
|
||||
md5_stored = file_obj.md5;
|
||||
@ -19,7 +23,7 @@ try {
|
||||
runProgram('mkdir', t.ext);
|
||||
}
|
||||
|
||||
t.runTool( "files" , "-d" , t.baseName , "get" , 'mongod' , '-l' , t.extFile );
|
||||
t.runTool( "files" , "-d" , t.baseName , "get" , filename , '-l' , t.extFile );
|
||||
md5 = md5sumFile(t.extFile);
|
||||
assert.eq( md5 , md5_stored , "B" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user