Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try to make chmod work

  • Loading branch information...
commit 0bd2737e381f9bb24e6ddf856c9c5db641c4c4b8 1 parent 5fc7c28
@erh erh authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 jstests/sharding/sharding_with_keyfile.js
View
10 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(",")
Please sign in to comment.
Something went wrong with that request. Please try again.