Skip to content

Commit 48468ff

Browse files
committed
Allow custom setting of codeql cli for integration tessts
1 parent 903f5db commit 48468ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

extensions/ql-vscode/src/vscode-tests/cli-integration/run-remote-query.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { CodeQLExtensionInterface } from '../../extension';
1313
import { setRemoteControllerRepo, setRemoteRepositoryLists } from '../../config';
1414
import { UserCancellationException } from '../../commandRunner';
1515

16-
describe.only('Remote queries', function() {
16+
describe('Remote queries', function() {
1717
const baseDir = path.join(__dirname, '../../../src/vscode-tests/cli-integration');
1818

1919
let sandbox: sinon.SinonSandbox;

extensions/ql-vscode/src/vscode-tests/ensureCli.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ export async function ensureCli(useCli: boolean) {
5858
return;
5959
}
6060

61+
if ('CODEQL_PATH' in process.env) {
62+
const executablePath = process.env.CODEQL_PATH;
63+
console.log(`Using existing CLI at ${executablePath}`);
64+
return;
65+
}
66+
6167
const assetName = DistributionManager.getRequiredAssetName();
6268
const url = getCliDownloadUrl(assetName);
6369
const unzipDir = getCliUnzipDir();

0 commit comments

Comments
 (0)