summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2019-12-17 00:01:40 +0000
committerevergreen <evergreen@mongodb.com>2019-12-17 00:01:40 +0000
commit37df883f1b56102296004bf67ef64437addff338 (patch)
treedc217291a176f8f2721ffebe855094f76f4891f1
parente8e80e4a723d7a6da129f0742b0378bceb8bd547 (diff)
downloadmongo-37df883f1b56102296004bf67ef64437addff338.tar.gz
SERVER-45155 Write the temp file of rollback file dump in the test's db directory
-rw-r--r--jstests/replsets/libs/rollback_files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/libs/rollback_files.js b/jstests/replsets/libs/rollback_files.js
index 634610eeea6..b2281dd9966 100644
--- a/jstests/replsets/libs/rollback_files.js
+++ b/jstests/replsets/libs/rollback_files.js
@@ -69,7 +69,7 @@ function checkRollbackFiles(dbPath, nss, uuid, expectedDocs) {
// Parse the BSON rollback file and check for the right documents. The documents may be written
// out in an arbitrary order so we just check the document set.
- let tmpJSONFile = "rollback_tmp.json";
+ let tmpJSONFile = rollbackDir + "/rollback_tmp.json";
let exitCode =
MongoRunner.runMongoTool("bsondump", {outFile: tmpJSONFile, bsonFile: rollbackFile});
assert.eq(exitCode, 0, "bsondump failed to parse the rollback file");