fix bad smoketest launcher

This commit is contained in:
Joao Moreno 2018-07-03 18:06:06 +02:00
parent 6a40aa296e
commit 7d277787b4

View file

@ -5,13 +5,22 @@
const path = require('path'); const path = require('path');
const Mocha = require('mocha'); const Mocha = require('mocha');
const minimist = require('minimist');
const suite = 'Smoke Tests'; const suite = 'Smoke Tests';
const [, , ...args] = process.argv;
const opts = minimist(args, {
string: [
'f'
]
});
const options = { const options = {
useColors: true, useColors: true,
timeout: 60000, timeout: 60000,
slow: 30000 slow: 30000,
grep: opts['f']
}; };
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) { if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {