From 48b16a4633eed96780bcfca1ac3da5fc6c605ea2 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Mon, 21 Nov 2016 21:41:19 -0800 Subject: [PATCH] Environment patching tests do not work on Win32 --- spec/update-process-env-spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/update-process-env-spec.js b/spec/update-process-env-spec.js index 73f0a1988..e90e0678e 100644 --- a/spec/update-process-env-spec.js +++ b/spec/update-process-env-spec.js @@ -152,6 +152,8 @@ describe('updateProcessEnv(launchEnv)', function () { describe('when the launch environment does not come from a shell', function () { describe('on osx', function () { it('updates process.env to match the environment in the user\'s login shell', async function () { + if (process.platform === 'win32') return // TestsThatFailOnWin32 + process.platform = 'darwin' process.env.SHELL = '/my/custom/bash' spawn.setDefault(spawn.simple(0, dedent` @@ -176,6 +178,8 @@ describe('updateProcessEnv(launchEnv)', function () { describe('on linux', function () { it('updates process.env to match the environment in the user\'s login shell', async function () { + if (process.platform === 'win32') return // TestsThatFailOnWin32 + process.platform = 'linux' process.env.SHELL = '/my/custom/bash' spawn.setDefault(spawn.simple(0, dedent` @@ -212,6 +216,8 @@ describe('updateProcessEnv(launchEnv)', function () { describe('shouldGetEnvFromShell()', function () { it('indicates when the environment should be fetched from the shell', function () { + if (process.platform === 'win32') return // TestsThatFailOnWin32 + process.platform = 'darwin' expect(shouldGetEnvFromShell({SHELL: '/bin/sh'})).toBe(true) expect(shouldGetEnvFromShell({SHELL: '/usr/local/bin/sh'})).toBe(true)