diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-25 23:35:00 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-01-25 23:35:00 -0500 |
commit | 758ddac462836624b9fbac3f55a8ab2ea15089d7 (patch) | |
tree | a3d85b0c84e054592d1a356ec5e12d44452f277d | |
parent | 773a8eb74303533a29709bec5baa95c6a930ede7 (diff) | |
download | mongo-758ddac462836624b9fbac3f55a8ab2ea15089d7.tar.gz |
try to make chmod work
-rw-r--r-- | jstests/sharding/sharding_with_keyfile.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/sharding/sharding_with_keyfile.js b/jstests/sharding/sharding_with_keyfile.js index ff67a8a5555..7c90ee80a89 100644 --- a/jstests/sharding/sharding_with_keyfile.js +++ b/jstests/sharding/sharding_with_keyfile.js @@ -1,9 +1,15 @@ // Tests sharding with a key file -var st = new ShardingTest({ name : jsTestName(), +myTestName = "sharding_with_keyfile" + +keyFile = "jstests/sharding/" + myTestName + ".key"; + +run( "chmod" , "600" , keyFile ); + +var st = new ShardingTest({ name : myTestName , shards : 2, mongos : 1, - keyFile : keyFile = "jstests/sharding/" + jsTestName() + ".key" }) + keyFile : keyFile }) // Make sure all our instances got the key var configs = st._configServers |