Skip to content

Commit a093df5

Browse files
authored
Skip venv discovers tests for Linux in VSTS (#3929)
For #3848 - tests work about 30-40% of the time - suspect fs.watch failing on virtualized Linux - still works on Travis (!?)
1 parent 96c381a commit a093df5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/test/interpreters/locators/workspaceVirtualEnvService.test.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ import { exec } from 'child_process';
99
import * as path from 'path';
1010
import { Uri } from 'vscode';
1111
import '../../../client/common/extensions';
12-
import { IInterpreterLocatorService, WORKSPACE_VIRTUAL_ENV_SERVICE } from '../../../client/interpreter/contracts';
12+
import {
13+
IInterpreterLocatorService, WORKSPACE_VIRTUAL_ENV_SERVICE
14+
} from '../../../client/interpreter/contracts';
1315
import { IServiceContainer } from '../../../client/ioc/types';
14-
import { deleteFiles, isOs, isPythonVersionInProcess, OSType, PYTHON_PATH, rootWorkspaceUri, waitForCondition } from '../../common';
16+
import {
17+
deleteFiles, isOs, isPythonVersionInProcess, OSType,
18+
PYTHON_PATH, rootWorkspaceUri, waitForCondition
19+
} from '../../common';
1520
import { IS_MULTI_ROOT_TEST } from '../../constants';
16-
import { initialize, multirootPath } from '../../initialize';
21+
import { initialize, IS_VSTS, multirootPath } from '../../initialize';
1722

1823
const timeoutMs = 60_000;
1924
suite('Interpreters - Workspace VirtualEnv Service', function () {
@@ -52,7 +57,12 @@ suite('Interpreters - Workspace VirtualEnv Service', function () {
5257

5358
suiteSetup(async function () {
5459
// skip for Linux CI, see #3848
55-
if (isOs(OSType.Linux) || await isPythonVersionInProcess(undefined, '2')) {
60+
if (isOs(OSType.Linux) && IS_VSTS) {
61+
return this.skip();
62+
}
63+
64+
// skip for Python < 3, no venv support
65+
if (await isPythonVersionInProcess(undefined, '2')) {
5666
return this.skip();
5767
}
5868

0 commit comments

Comments
 (0)