Add tests of CODEQL_RUNNER env var

This commit is contained in:
Robert 2021-01-12 11:29:30 +00:00
parent c796788c33
commit 2f9814894f
6 changed files with 59 additions and 4 deletions

3
lib/tracer-config.js generated
View file

@ -145,7 +145,8 @@ async function getCombinedTracerConfig(config, codeql) {
// on order to trace when System Integrity Protection is enabled.
// The exectuable also exists and works for other platforms so we output this env
// var with a path to the runner regardless so it's always available.
mainTracerConfig.env["CODEQL_RUNNER"] = path.join(mainTracerConfig.env["CODEQL_DIST"], "tools", mainTracerConfig.env["CODEQL_PLATFORM"], "runner");
const runnerExeName = process.platform === "win32" ? "runner.exe" : "runner";
mainTracerConfig.env["CODEQL_RUNNER"] = path.join(mainTracerConfig.env["CODEQL_DIST"], "tools", mainTracerConfig.env["CODEQL_PLATFORM"], runnerExeName);
return mainTracerConfig;
}
exports.getCombinedTracerConfig = getCombinedTracerConfig;