Ignore the tools directory as well and remove the warning.
This commit is contained in:
parent
dbecf76db8
commit
62f25fda9b
9 changed files with 26 additions and 24 deletions
|
|
@ -2,7 +2,6 @@ import test from "ava";
|
|||
import * as path from "path";
|
||||
|
||||
import * as analysisPaths from "./analysis-paths";
|
||||
import { getRunnerLogger } from "./logging";
|
||||
import { setupTests } from "./testing-utils";
|
||||
import * as util from "./util";
|
||||
|
||||
|
|
@ -20,7 +19,7 @@ test("emptyPaths", async (t) => {
|
|||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], undefined);
|
||||
t.is(process.env["LGTM_INDEX_FILTERS"], undefined);
|
||||
|
|
@ -39,7 +38,7 @@ test("nonEmptyPaths", async (t) => {
|
|||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], "path1\npath2");
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], "path4\npath5");
|
||||
t.is(
|
||||
|
|
@ -62,7 +61,7 @@ test("exclude temp dir", async (t) => {
|
|||
toolCacheDir,
|
||||
codeQLCmd: "",
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], "codeql-runner-temp");
|
||||
t.is(process.env["LGTM_INDEX_FILTERS"], undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue