Commit 93bab68b authored by Daniel Smith's avatar Daniel Smith

Fix custom benchmark not found error in TwoCommit tests

parent 269304a0
......@@ -351,17 +351,17 @@ function runTest(test) {
var re = /\\/gi; //pass forward slashes, even on windows to avoid broken escaping.
if (test.testType == 'bisect'){
args = [].concat(['./regressionFinder.py', '--branch', test.branch, '--moduleToTest', test.module, '--knownBadRev', test.bad_commit,
'--knownGoodRev', test.good_commit, '--benchmark', test.test_name || test.custom_benchmark_file.tempFilePath.replace(re, "/"), '--regressionTarget', test.expected_regression, '--buildCores', buildCores || os.cpus().length]);
'--knownGoodRev', test.good_commit, '--benchmark', test.test_name ? test.test_name : test.custom_benchmark_file.tempFilePath.replace(re, "/"), '--regressionTarget', test.expected_regression, '--buildCores', buildCores || os.cpus().length]);
} else if (test.testType == 'singleCommit'){
args = [].concat(['./regressionFinder.py', '--branch', test.branch, '--moduleToTest', test.module, '--testSingleCommit', test.commit,
'--benchmark', test.test_name || test.custom_benchmark_file.tempFilePath.replace(re, "/"), '--buildCores', buildCores || os.cpus().length]);
'--benchmark', test.test_name ? test.test_name : test.custom_benchmark_file.tempFilePath.replace(re, "/"), '--buildCores', buildCores || os.cpus().length]);
if (test.firstCommitBuildOnHead){
args.push('--FirstBuildOnHead');
}
} else if (test.testType == 'twoCommit'){
args = [].concat(['./regressionFinder.py', '--branch', test.branch, '--moduleToTest', test.module,
'--testTwoCommit', test.firstCommit + ',' + test.secondCommit,
'--benchmark', test.test_name, '--buildCores', buildCores || os.cpus().length]);
'--benchmark', test.test_name ? test.test_name : test.custom_benchmark_file.tempFilePath.replace(re, "/"), '--buildCores', buildCores || os.cpus().length]);
if (test.firstCommitBuildOnHead){
args.push('--FirstBuildOnHead');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment