Fix test script overwriting grep option (#8209)

* Fix test script overwriting grep option

* Better logic and fix unstable scripts too
This commit is contained in:
Charles Gagnon
2019-11-04 11:35:52 -08:00
committed by GitHub
parent ade68b184d
commit 38decaea90
5 changed files with 15 additions and 18 deletions

View File

@@ -29,6 +29,14 @@ const optimist = require('optimist')
const argv = optimist.argv;
// {{SQL CARBON EDIT}}
// Set test run options. These are NOT used if grep is specified manually - that implies the user has a specific desire to
// filter the tests beyond the defaults set for ADS_TEST_GREP in the calling scripts.
if (!argv.grep) {
argv.grep = process.env['ADS_TEST_GREP'];
argv.invert = Boolean(process.env['ADS_TEST_INVERT_GREP']);
}
if (argv.help) {
optimist.showHelp();
process.exit(0);