Skip to content

Commit

Permalink
[strict] Dogfood all:strict in more of our own scripts.
Browse files Browse the repository at this point in the history
Found a strict_errexit problem in test/osh2oil.sh already.
  • Loading branch information
Andy Chu committed Sep 5, 2019
1 parent 64a6077 commit 8165082
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/actions.sh
Expand Up @@ -8,6 +8,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source build/common.sh

Expand Down
1 change: 1 addition & 0 deletions build/compile.sh
Expand Up @@ -6,6 +6,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source build/common.sh

Expand Down
1 change: 1 addition & 0 deletions build/test.sh
Expand Up @@ -6,6 +6,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

make-zip() {
local out=_tmp/make-zip-test.zip
Expand Down
1 change: 1 addition & 0 deletions test/gold.sh
Expand Up @@ -11,6 +11,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh # for $OSH

Expand Down
1 change: 1 addition & 0 deletions test/lint.sh
Expand Up @@ -8,6 +8,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source build/common.sh

Expand Down
1 change: 1 addition & 0 deletions test/osh2oil.sh
Expand Up @@ -6,6 +6,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh

Expand Down
1 change: 1 addition & 0 deletions test/spec-runner.sh
Expand Up @@ -8,6 +8,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh

Expand Down
1 change: 0 additions & 1 deletion test/spec.sh
Expand Up @@ -6,7 +6,6 @@
set -o nounset
set -o pipefail
set -o errexit

shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh
Expand Down
1 change: 0 additions & 1 deletion test/unit.sh
Expand Up @@ -13,7 +13,6 @@
set -o nounset
set -o pipefail
set -o errexit

shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh
Expand Down
1 change: 1 addition & 0 deletions test/wild-runner.sh
Expand Up @@ -6,6 +6,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

source test/common.sh

Expand Down
1 change: 1 addition & 0 deletions test/wild.sh
Expand Up @@ -15,6 +15,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

readonly RESULT_DIR=_tmp/wild

Expand Down
1 change: 1 addition & 0 deletions types/osh-parse.sh
Expand Up @@ -8,6 +8,7 @@
set -o nounset
set -o pipefail
set -o errexit
shopt -s all:strict 2>/dev/null || true # dogfood for OSH

demo() {
export PYTHONPATH=.
Expand Down

0 comments on commit 8165082

Please sign in to comment.