summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorYuhong Zhang <yuhong.zhang@mongodb.com>2022-06-29 13:56:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-29 14:32:14 +0000
commit8304b16f1f4891bd4b36037374b38a0f3f30f5e6 (patch)
tree9389a1b7f33ca2c7dbfc0a662e3ce666ec60b1bc /jstests
parent490a66218e20c9829a8a614bfa3eabede35f4de9 (diff)
downloadmongo-8304b16f1f4891bd4b36037374b38a0f3f30f5e6.tar.gz
SERVER-67631 Skip checking wt return code on Windows testing variants
Diffstat (limited to 'jstests')
-rw-r--r--jstests/disk/libs/wt_file_helper.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/jstests/disk/libs/wt_file_helper.js b/jstests/disk/libs/wt_file_helper.js
index b94420434f7..e06cf0731c0 100644
--- a/jstests/disk/libs/wt_file_helper.js
+++ b/jstests/disk/libs/wt_file_helper.js
@@ -222,7 +222,12 @@ let assertErrorOnRequestWhenFilesAreCorruptOrMissing = function(
*/
let runWiredTigerTool = function(...args) {
const cmd = ['wt'].concat(args);
- assert.eq(run.apply(undefined, cmd), 0, "error executing: " + cmd.join(' '));
+ // TODO (SERVER-67632): Check the return code on Windows variants again.
+ if (_isWindows()) {
+ run.apply(undefined, cmd);
+ } else {
+ assert.eq(run.apply(undefined, cmd), 0, "error executing: " + cmd.join(' '));
+ }
};
/**
@@ -241,8 +246,9 @@ let truncateUriAndRestartMongod = function(uri, conn, mongodOptions) {
*/
let rewriteTable = function(uri, conn, modifyData) {
MongoRunner.stopMongod(conn, null, {skipValidation: true});
- const tempDumpFile = conn.dbpath + "/temp_dump";
- const newTableFile = conn.dbpath + "/new_table_file";
+ const separator = _isWindows() ? '\\' : '/';
+ const tempDumpFile = conn.dbpath + separator + "temp_dump";
+ const newTableFile = conn.dbpath + separator + "new_table_file";
runWiredTigerTool("-h",
conn.dbpath,
"-r",