From d9433cc3abcd84e8686716238d8446a2f994e003 Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Mon, 1 Feb 2016 08:56:03 -0500 Subject: [PATCH] SERVER-18144 Remove references to TestData.testFile and TestData.testPath --- buildscripts/smoke.py | 2 -- src/mongo/shell/utils.js | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index bb883546c62..d2add18cafd 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -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, "" ) + '";' + \ diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js index 1338cc4b942..55c6367fe25 100644 --- a/src/mongo/shell/utils.js +++ b/src/mongo/shell/utils.js @@ -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;