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

@@ -1,6 +1,8 @@
#!/bin/bash
set -e
PASSED_ARGS="$@"
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
@@ -15,4 +17,4 @@ export ADS_TEST_INVERT_GREP=
echo Running UNSTABLE ADS Core Tests
./scripts/test.sh
./scripts/test.sh $PASSED_ARGS