Stop setting CODEQL_RUNNER environment variable if CLI already sets it (#2081)
* Check `setsCodeqlRunnerEnvVar` is set in the CLI with `ToolsFeatures` * Stop setting `CODEQL_RUNNER` env var when CLI does * Add optional `features` parameter in test utils * Test that `CODEQL_RUNNER` is not set if CLI sets it
This commit is contained in:
parent
eb14aeb61d
commit
96531062ba
18 changed files with 152 additions and 37 deletions
7
lib/testing-utils.js
generated
7
lib/testing-utils.js
generated
|
|
@ -190,14 +190,15 @@ exports.mockLanguagesInRepo = mockLanguagesInRepo;
|
|||
/**
|
||||
* Constructs a `VersionInfo` object for testing purposes only.
|
||||
*/
|
||||
const makeVersionInfo = (version) => ({
|
||||
const makeVersionInfo = (version, features) => ({
|
||||
version,
|
||||
features,
|
||||
});
|
||||
exports.makeVersionInfo = makeVersionInfo;
|
||||
function mockCodeQLVersion(version) {
|
||||
function mockCodeQLVersion(version, features) {
|
||||
return {
|
||||
async getVersion() {
|
||||
return (0, exports.makeVersionInfo)(version);
|
||||
return (0, exports.makeVersionInfo)(version, features);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue