summaryrefslogtreecommitdiff
path: root/jstests/mr_killop.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/mr_killop.js')
-rw-r--r--jstests/mr_killop.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/mr_killop.js b/jstests/mr_killop.js
index 6331a21da9b..01f2e5d4d61 100644
--- a/jstests/mr_killop.js
+++ b/jstests/mr_killop.js
@@ -57,9 +57,11 @@ if ( typeof _threadInject == "undefined" ) { // don't run in v8 mode - SERVER-19
spec[ "scope" ] = scope;
}
+ stringifiedSpec = tojson( spec ).toString().replace( /\n/g, ' ' );
+
// The assert below won't be caught by this test script, but it will cause error messages
// to be printed.
- s = startParallelShell( "assert.commandWorked( db.runCommand( " + tojson( spec ) + " ) );" );
+ s = startParallelShell( "print( '" + stringifiedSpec + "' ); assert.commandWorked( db.runCommand( " + stringifiedSpec + " ) );" );
if ( wait ) {
sleep( 2000 );