diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-05-28 11:30:37 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-05-28 11:30:37 -0400 |
commit | 3bec3c4ec50342ecf3bec7f0581b8479ab27aa04 (patch) | |
tree | 6625a2a407971efce9140bf9b461e489f61314b2 /jstests/libs/parallelTester.js | |
parent | cb4aaa05318c532b7df2f363555df5f49cd4ff7f (diff) | |
download | mongo-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.js | 1 |
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;" + |