Skip to content

Commit

Permalink
Merge pull request #288 from justinsb/standard_bash_options
Browse files Browse the repository at this point in the history
Add standard error handling options to test.sh / test_existing_projects.sh
  • Loading branch information
k8s-ci-robot committed Jun 25, 2018
2 parents e6ad0ad + aedadeb commit 1e96df4
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 @@ -13,7 +13,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 @@ -13,9 +13,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 1e96df4

Please sign in to comment.