-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathload_libs-8.2.js
More file actions
21 lines (16 loc) · 990 Bytes
/
Copy pathload_libs-8.2.js
File metadata and controls
21 lines (16 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// All changes required to run JS tests in legacy / qa-tests directories should go in this file.
// Assume that the shell is running from either test/legacy42/ or test/qa-tests directories for load paths.
// This file intentionally loads the libs for 8.1, since the changes for 8.1 are the same as what we
// need for 8.2.
if (typeof TestData == "undefined") {
print('Initialising TestData in load_libs.8.2.js')
TestData = new Object();
}
const {ReplSetTest} = await import('../shell_common/libs/replsettest-8.1.js');
globalThis.ReplSetTest = ReplSetTest
const {ShardingTest} = await import('../shell_common/libs/shardingtest-8.1.js');
globalThis.ShardingTest = ShardingTest
// SERVER-95628 - In 8.1 shell rawMongoProgramOutput expects a regexp argument to match the program output.
// Change it here specifically when running from 8.1 shell.
var __origRawMongoProgramOutput = rawMongoProgramOutput;
rawMongoProgramOutput = function() { return __origRawMongoProgramOutput('.*') };