Skip to content

Commit

Permalink
Add standard error handling options to test.sh / test_existing_projec…
Browse files Browse the repository at this point in the history
…ts.sh

I think otherwise a failure in test_existing_projects.sh would not
have failed CI.
  • Loading branch information
justinsb committed Jun 23, 2018
1 parent 06c1e62 commit aedadeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -e
set -o errexit
set -o nounset
set -o pipefail

# Enable tracing in this script off by setting the TRACE variable in your
# environment to any value:
Expand Down
6 changes: 5 additions & 1 deletion test_existing_projects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail

for p in ./test/projects/*
do
if [[ -d "$p" ]]; then
go test -v "$p"
fi
done
done

0 comments on commit aedadeb

Please sign in to comment.