summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-03-16 14:31:09 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-16 18:58:38 +0000
commit800da7962b1fed69986b099b694d12e16658be99 (patch)
tree1ac902a1b1f187305b0715c6e842970fc70ee5f7 /jstests/disk
parentd187a3297df58c624d1e53f10959b3920ea218c4 (diff)
downloadmongo-800da7962b1fed69986b099b694d12e16658be99.tar.gz
SERVER-46468 Prevent validate from generating overlong responses
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/libs/wt_file_helper.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/disk/libs/wt_file_helper.js b/jstests/disk/libs/wt_file_helper.js
index fda0f7b1dc1..832eaff5a68 100644
--- a/jstests/disk/libs/wt_file_helper.js
+++ b/jstests/disk/libs/wt_file_helper.js
@@ -199,3 +199,11 @@ let assertErrorOnRequestWhenFilesAreCorruptOrMissing = function(
assert.gte(rawMongoProgramOutput().search(errmsgRegExp), 0);
MongoRunner.stopMongod(mongod, 9, {allowedExitCode: MongoRunner.EXIT_ABRUPT});
};
+
+/**
+ * Runs the WiredTiger tool with the provided arguments.
+ */
+let runWiredTigerTool = function(...args) {
+ const cmd = ['wt'].concat(args);
+ assert.eq(run.apply(undefined, cmd), 0, "error executing: " + cmd.join(' '));
+};