Allow custom setting of codeql cli for integration tessts
This commit is contained in:
@@ -13,7 +13,7 @@ import { CodeQLExtensionInterface } from '../../extension';
|
||||
import { setRemoteControllerRepo, setRemoteRepositoryLists } from '../../config';
|
||||
import { UserCancellationException } from '../../commandRunner';
|
||||
|
||||
describe.only('Remote queries', function() {
|
||||
describe('Remote queries', function() {
|
||||
const baseDir = path.join(__dirname, '../../../src/vscode-tests/cli-integration');
|
||||
|
||||
let sandbox: sinon.SinonSandbox;
|
||||
|
||||
@@ -58,6 +58,12 @@ export async function ensureCli(useCli: boolean) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ('CODEQL_PATH' in process.env) {
|
||||
const executablePath = process.env.CODEQL_PATH;
|
||||
console.log(`Using existing CLI at ${executablePath}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const assetName = DistributionManager.getRequiredAssetName();
|
||||
const url = getCliDownloadUrl(assetName);
|
||||
const unzipDir = getCliUnzipDir();
|
||||
|
||||
Reference in New Issue
Block a user