remote_runner: Avoid duplication in task list
parent
59be8d5c05
commit
1f3a831cc3
|
@ -128,40 +128,36 @@ const sauceTestWorker = async.queue((testSettings, callback) => {
|
||||||
});
|
});
|
||||||
}, 6); // run 6 tests in parrallel
|
}, 6); // run 6 tests in parrallel
|
||||||
|
|
||||||
if (!isAdminRunner) {
|
[
|
||||||
sauceTestWorker.push({
|
{
|
||||||
platform: 'Windows 10',
|
|
||||||
browserName: 'firefox',
|
|
||||||
version: '84.0',
|
|
||||||
});
|
|
||||||
sauceTestWorker.push({
|
|
||||||
platform: 'Windows 7',
|
|
||||||
browserName: 'chrome',
|
|
||||||
version: '55.0',
|
|
||||||
args: ['--use-fake-device-for-media-stream'],
|
|
||||||
});
|
|
||||||
sauceTestWorker.push({
|
|
||||||
platform: 'OS X 10.15',
|
platform: 'OS X 10.15',
|
||||||
browserName: 'safari',
|
browserName: 'safari',
|
||||||
version: '13.1',
|
version: '13.1',
|
||||||
});
|
},
|
||||||
sauceTestWorker.push({
|
...(isAdminRunner ? [] : [
|
||||||
platform: 'Windows 10',
|
{
|
||||||
browserName: 'microsoftedge',
|
platform: 'Windows 10',
|
||||||
version: '83.0',
|
browserName: 'firefox',
|
||||||
});
|
version: '84.0',
|
||||||
sauceTestWorker.push({
|
},
|
||||||
platform: 'Windows 7',
|
{
|
||||||
browserName: 'firefox',
|
platform: 'Windows 7',
|
||||||
version: '78.0',
|
browserName: 'chrome',
|
||||||
});
|
version: '55.0',
|
||||||
} else {
|
args: ['--use-fake-device-for-media-stream'],
|
||||||
sauceTestWorker.push({
|
},
|
||||||
platform: 'OS X 10.15',
|
{
|
||||||
browserName: 'safari',
|
platform: 'Windows 10',
|
||||||
version: '13.1',
|
browserName: 'microsoftedge',
|
||||||
});
|
version: '83.0',
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
platform: 'Windows 7',
|
||||||
|
browserName: 'firefox',
|
||||||
|
version: '78.0',
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
].forEach((task) => sauceTestWorker.push(task));
|
||||||
|
|
||||||
sauceTestWorker.drain(() => {
|
sauceTestWorker.drain(() => {
|
||||||
process.exit(allTestsPassed ? 0 : 1);
|
process.exit(allTestsPassed ? 0 : 1);
|
||||||
|
|
Loading…
Reference in New Issue