-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from rosette-api/suppo-1041-update-per-es6.3-s…
…pec-change SUPPO-1041: fix the pluging to work with ES 6.3.0+
- Loading branch information
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
if grep -E -i 'exception|"failed":[1-9]' $1; then | ||
echo "Test query failed! See $1 for details. Exiting..."; | ||
exit 1; | ||
if [[ "$(tail -1 "$1" 2>/dev/null)" != "exit: 0" ]] ; then | ||
echo "There are test failures. Exiting..." | ||
exit 1 | ||
fi | ||
|
||
if grep -E -i 'exception|"failed":[1-9]' "$1" ; then | ||
echo "Test query failed! See $1 for details. Exiting..." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters