diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-25 23:35:00 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-02-04 01:13:02 -0500 |
commit | 0bd2737e381f9bb24e6ddf856c9c5db641c4c4b8 (patch) | |
tree | dccacfc2443ace29a8f196695a37813b8bad3cde | |
parent | 5fc7c288e05ef7109e60f08196bd06b4a9ae3ef1 (diff) | |
download | mongo-0bd2737e381f9bb24e6ddf856c9c5db641c4c4b8.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 94aea571258..bd8d03892f2 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._configDB.split(",") |