diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-25 23:35:00 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-02-02 23:47:01 -0500 |
commit | 6b3ab0f6e12da01b2443664534e655aa70685c52 (patch) | |
tree | 4b63c9ea760afb37100792ace9baf15029145438 /jstests | |
parent | 6b2231a15c45104c5e8ed292ab4eb5ad3fc94a29 (diff) | |
download | mongo-6b3ab0f6e12da01b2443664534e655aa70685c52.tar.gz |
try to make chmod work
Diffstat (limited to 'jstests')
-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(",") |