From f475c04ce33cebe739cad383410a1f4a48f041b0 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Tue, 8 Oct 2019 22:14:06 -0700 Subject: [PATCH] Fix mocha issues (#7588) * mocha invert boolean * Run integration test setup either way --- extensions/integration-tests/src/index.ts | 3 ++- scripts/sql-test-integration-unstable.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/integration-tests/src/index.ts b/extensions/integration-tests/src/index.ts index 3e2f805351..3025a34988 100644 --- a/extensions/integration-tests/src/index.ts +++ b/extensions/integration-tests/src/index.ts @@ -37,7 +37,8 @@ if (process.env.ADS_TEST_GREP) { console.log(`setting options.grep to: ${options.grep}`); } if (process.env.ADS_TEST_INVERT_GREP) { - options.invert = parseInt(process.env.ADS_TEST_INVERT_GREP); + const value = parseInt(process.env.ADS_TEST_INVERT_GREP); + options.invert = Boolean(value); console.log(`setting options.invert to: ${options.invert}`); } if (process.env.ADS_TEST_TIMEOUT) { diff --git a/scripts/sql-test-integration-unstable.sh b/scripts/sql-test-integration-unstable.sh index 7566457934..df07fe522c 100755 --- a/scripts/sql-test-integration-unstable.sh +++ b/scripts/sql-test-integration-unstable.sh @@ -10,8 +10,8 @@ fi cd $ROOT -export ADS_TEST_GREP=@UNSTABLE@ -export ADS_TEST_INVERT_GREP= +export ADS_TEST_GREP="(.*@UNSTABLE@|integration test setup)" +export ADS_TEST_INVERT_GREP=0 echo Running UNSTABLE ADS Extension Integration tests