Browse files

try to make chmod work

  • Loading branch information...
1 parent 5fc7c28 commit 0bd2737e381f9bb24e6ddf856c9c5db641c4c4b8 @erh erh committed Jan 25, 2012
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(",")

0 comments on commit 0bd2737

Please sign in to comment.