Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -3264,4 +3264,9 @@ if (JetStreamParams.testList.length) {
benchmarks = findBenchmarksByTag("Default", defaultDisabledTags)
}

if (JetStreamParams.testExcludeList.length) {
const excludeList = new Set(JetStreamParams.testExcludeList.map(name => name.toLowerCase()));
benchmarks = benchmarks.filter(benchmark => !excludeList.has(benchmark.name.toLowerCase()));
}

this.JetStream = new Driver(benchmarks);
6 changes: 5 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const CLI_PARAMS = {
help: "Run a specific test or comma-separated list of tests.",
param: "test",
},
exclude: {
help: "Exclude a specific test or comma-separated list of tests.",
param: "exclude",
},
tag: {
help: "Run tests with a specific tag or comma-separated list of tags.",
param: "tag",
Expand Down Expand Up @@ -119,7 +123,7 @@ const printHelp = cliParams.delete("help");
const dumpTestList = cliParams.delete("dumpTestList");

if (cliArgs.length) {
let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : []
let tests = cliParams.has("test") ? cliParams.get("test").split(",") : []
tests = tests.concat(cliArgs);
cliParams.set("test", tests.join(","));
}
Expand Down
2 changes: 2 additions & 0 deletions utils/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Params {
startDelay = undefined;

testList = [];
testExcludeList = [];
testIterationCount = undefined;
testWorstCaseCount = undefined;
prefetchResources = true;
Expand Down Expand Up @@ -83,6 +84,7 @@ class Params {
}

this.testList = this._parseOneOf(sourceParams, ["testList", "tag", "tags", "test", "tests"], this._parseTestListParam);
this.testExcludeList = this._parseOneOf(sourceParams, ["testExcludeList", "exclude", "excludes"], this._parseTestListParam);
this.testIterationCount = this._parseOneOf(sourceParams, ["testIterationCount", "iterationCount", "iterations" ], this._parseIntParam, 1);
this.testWorstCaseCount = this._parseOneOf(sourceParams, ["testWorstCaseCount", "worstCaseCount", "worst"], this._parseIntParam, 1);

Expand Down
Loading