summaryrefslogtreecommitdiff
path: root/jstests/libs/parallelTester.js
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2015-05-28 11:30:37 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2015-05-28 11:30:37 -0400
commit3bec3c4ec50342ecf3bec7f0581b8479ab27aa04 (patch)
tree6625a2a407971efce9140bf9b461e489f61314b2 /jstests/libs/parallelTester.js
parentcb4aaa05318c532b7df2f363555df5f49cd4ff7f (diff)
downloadmongo-3bec3c4ec50342ecf3bec7f0581b8479ab27aa04.tar.gz
SERVER-18673 Copy TestData into ScopedThreads used by parallelTester.
TestData needs to be assigned globally to ensure that a mongo shell started with startParallelShell() gets the TestData configuration.
Diffstat (limited to 'jstests/libs/parallelTester.js')
-rw-r--r--jstests/libs/parallelTester.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/libs/parallelTester.js b/jstests/libs/parallelTester.js
index d052b5024ea..013642b5566 100644
--- a/jstests/libs/parallelTester.js
+++ b/jstests/libs/parallelTester.js
@@ -225,6 +225,7 @@ if ( typeof _threadInject != "undefined" ){
var wrapper = function( fun, argv ) {
eval (
"var z = function() {" +
+ "TestData = " + tojson(TestData) + ";" +
"var __parallelTests__fun = " + fun.toString() + ";" +
"var __parallelTests__argv = " + tojson( argv ) + ";" +
"var __parallelTests__passed = false;" +