summaryrefslogtreecommitdiff
path: root/jstests/libs/test_background_ops.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/test_background_ops.js')
-rw-r--r--jstests/libs/test_background_ops.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/libs/test_background_ops.js b/jstests/libs/test_background_ops.js
index db2361d67c8..dd2f75a9da5 100644
--- a/jstests/libs/test_background_ops.js
+++ b/jstests/libs/test_background_ops.js
@@ -82,6 +82,10 @@ var getResult = function(mongo, name) {
* Overrides the parallel shell code in mongo
*/
function startParallelShell(jsCode, port) {
+ if (TestData) {
+ jsCode = "TestData = " + tojson(TestData) + ";" + jsCode;
+ }
+
var x;
if (port) {
x = startMongoProgramNoConnect("mongo", "--port", port, "--eval", jsCode);