Skip to content

Commit

Permalink
Fail unit and e2e tests on any errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmalloy committed May 19, 2021
1 parent 0397425 commit b2f7aa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#!/bin/bash

set -o errexit
set -o nounset

# This just runs e2e tests.
if [ -n "$KIND_E2E" ]; then
K8S_VERSION=${KUBERNETES_VERSION:-v1.21.1}
Expand Down
3 changes: 3 additions & 0 deletions test/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#!/bin/bash

set -o errexit
set -o nounset

# This just run unit-tests. Ignoring the current directory so as to avoid running e2e tests.
PRJ_PREFIX="sigs.k8s.io/descheduler"
go test $(go list ${PRJ_PREFIX}/... | grep -v ${PRJ_PREFIX}/vendor/| grep -v ${PRJ_PREFIX}/test/)

0 comments on commit b2f7aa4

Please sign in to comment.