Revert change to unit test runner grep option (#16980)

This commit is contained in:
Charles Gagnon
2021-09-02 16:52:09 -07:00
committed by GitHub
parent 42a1bdc491
commit 73c20345e9
3 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
@echo off @echo off
setlocal setlocal
set "ADS_TEST_GREP=(@UNSTABLE@|Unexpected Errors & Loader Errors)" set "ADS_TEST_GREP=/(@UNSTABLE@|Unexpected Errors & Loader Errors)/"
set ADS_TEST_INVERT_GREP= set ADS_TEST_INVERT_GREP=
echo Running UNSTABLE ADS Core Tests echo Running UNSTABLE ADS Core Tests

View File

@@ -12,7 +12,7 @@ fi
cd $ROOT cd $ROOT
export ADS_TEST_GREP=@UNSTABLE@ export ADS_TEST_GREP=/(@UNSTABLE@|Unexpected Errors & Loader Errors)/
export ADS_TEST_INVERT_GREP= export ADS_TEST_INVERT_GREP=
echo Running UNSTABLE ADS Core Tests echo Running UNSTABLE ADS Core Tests

View File

@@ -296,10 +296,9 @@ function runTests(opts) {
} }
return loadTests(opts).then(() => { return loadTests(opts).then(() => {
if (opts.grep) { if (opts.grep) {
// {{SQL CARBON EDIT}} mocha.grep(opts.grep);
mocha.grep(new RegExp(opts.grep)); // {{SQL CARBON EDIT}} Add invert option
if (opts.invert) { if (opts.invert) {
mocha.invert(); mocha.invert();
} }