mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-25 09:19:32 +01:00
SERVER-18144 Remove references to TestData.testFile and TestData.testPath
This commit is contained in:
parent
3e41f72b36
commit
d9433cc3ab
@ -577,8 +577,6 @@ def runTest(test, result):
|
||||
'TestData.wiredTigerEngineConfigString = "' + ternary( wiredtiger_engine_config_string, wiredtiger_engine_config_string, "" ) + '";' + \
|
||||
'TestData.wiredTigerCollectionConfigString = "' + ternary( wiredtiger_collection_config_string, wiredtiger_collection_config_string, "" ) + '";' + \
|
||||
'TestData.wiredTigerIndexConfigString = "' + ternary( wiredtiger_index_config_string, wiredtiger_index_config_string, "" ) + '";' + \
|
||||
'TestData.testPath = "' + path + '";' + \
|
||||
'TestData.testFile = "' + os.path.basename( path ) + '";' + \
|
||||
'TestData.testName = "' + re.sub( ".js$", "", os.path.basename( path ) ) + '";' + \
|
||||
'TestData.setParameters = "' + ternary( set_parameters, set_parameters, "" ) + '";' + \
|
||||
'TestData.setParametersMongos = "' + ternary( set_parameters_mongos, set_parameters_mongos, "" ) + '";' + \
|
||||
|
@ -161,16 +161,6 @@ jsTestName = function(){
|
||||
return "__unknown_name__"
|
||||
}
|
||||
|
||||
jsTestFile = function(){
|
||||
if( TestData ) return TestData.testFile
|
||||
return "__unknown_file__"
|
||||
}
|
||||
|
||||
jsTestPath = function(){
|
||||
if( TestData ) return TestData.testPath
|
||||
return "__unknown_path__"
|
||||
}
|
||||
|
||||
var _jsTestOptions = { enableTestCommands : true }; // Test commands should be enabled by default
|
||||
|
||||
jsTestOptions = function(){
|
||||
@ -219,8 +209,6 @@ jsTestLog = function(msg){
|
||||
jsTest = {}
|
||||
|
||||
jsTest.name = jsTestName
|
||||
jsTest.file = jsTestFile
|
||||
jsTest.path = jsTestPath
|
||||
jsTest.options = jsTestOptions
|
||||
jsTest.setOption = setJsTestOption
|
||||
jsTest.log = jsTestLog
|
||||
@ -228,10 +216,6 @@ jsTest.readOnlyUserRoles = ["read"]
|
||||
jsTest.basicUserRoles = ["dbOwner"]
|
||||
jsTest.adminUserRoles = ["root"]
|
||||
|
||||
jsTest.dir = function(){
|
||||
return jsTest.path().replace( /\/[^\/]+$/, "/" )
|
||||
}
|
||||
|
||||
jsTest.authenticate = function(conn) {
|
||||
if (!jsTest.options().auth && !jsTest.options().keyFile) {
|
||||
conn.authenticated = true;
|
||||
|
Loading…
Reference in New Issue
Block a user