From 4f6e30d63051897db4b5d9601509c0b7e9e7aaae Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Thu, 21 Feb 2019 09:22:40 +0000 Subject: [PATCH] Support passing user-data-dir to tests (#144) This allows running multiple sets of tests at the same time (see https://github.com/Microsoft/vscode/issues/68988). --- bin/test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/test b/bin/test index 856b692..b8a7c9a 100644 --- a/bin/test +++ b/bin/test @@ -51,6 +51,7 @@ if (process.env.CODE_TESTS_PATH) { var testsWorkspace = process.env.CODE_TESTS_WORKSPACE || testsFolder; var extensionsFolder = process.env.CODE_EXTENSIONS_PATH || process.cwd(); var locale = process.env.CODE_LOCALE || 'en'; +var userDataDir = process.env.CODE_TESTS_DATA_DIR; var executable = (process.platform === 'darwin') ? darwinExecutable : process.platform === 'win32' ? windowsExecutable : linuxExecutable; console.log('### VS Code Extension Test Run ###'); @@ -64,6 +65,10 @@ function runTests() { '--locale=' + locale, ]; + if (userDataDir) { + args.push('--user-data-dir=' + userDataDir); + } + if (process.env.CODE_DISABLE_EXTENSIONS) { args.push('--disable-extensions'); }