mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user