Use multiple processes for license scan (#19879)
This commit is contained in:
parent
4a4c53372a
commit
42e75fad72
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ public class LicenseScanTests : TestBase
|
||||||
string ignoreOptions = string.Join(" ", s_ignoredFilePatterns.Select(pattern => $"--ignore {pattern}"));
|
string ignoreOptions = string.Join(" ", s_ignoredFilePatterns.Select(pattern => $"--ignore {pattern}"));
|
||||||
ExecuteHelper.ExecuteProcessValidateExitCode(
|
ExecuteHelper.ExecuteProcessValidateExitCode(
|
||||||
"scancode",
|
"scancode",
|
||||||
$"--license --strip-root --only-findings {ignoreOptions} --json-pp {scancodeResultsPath} {Config.LicenseScanPath}",
|
$"--license --processes 4 --strip-root --only-findings {ignoreOptions} --json-pp {scancodeResultsPath} {Config.LicenseScanPath}",
|
||||||
OutputHelper);
|
OutputHelper);
|
||||||
|
|
||||||
JsonDocument doc = JsonDocument.Parse(File.ReadAllText(scancodeResultsPath));
|
JsonDocument doc = JsonDocument.Parse(File.ReadAllText(scancodeResultsPath));
|
||||||
|
|
Loading…
Reference in a new issue