From af014750aaebb7cf1d76efb6b620004f87ddebd9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 13 Feb 2021 02:09:24 -0500 Subject: [PATCH] tests: fix and ignore shellcheck errors --- .github/workflows/lint.yml | 3 +++ tests/apps/.websocket.disabled/check_deploy | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bf71dbdad..462e22648 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,6 +37,9 @@ jobs: - name: Run shellcheck uses: ludeeus/action-shellcheck@d586102c117f97e63d7e3b56629d269efc9a7c60 # 1.0.0 => d586102c117f97e63d7e3b56629d269efc9a7c60 + env: + # keep in sync with tests/shellcheck-exclude + SHELLCHECK_OPTS: -e SC1001 -e SC1003 -e SC1090 -e SC1091 -e SC1117 -e SC2029 -e SC2034 -e SC2046 -e SC2064 -e SC2068 -e SC2086 -e SC2119 -e SC2120 -e SC2128 -e SC2148 -e SC2153 -e SC2154 -e SC2155 -e SC2162 -e SC2174 -e SC2179 -e SC2191 -e SC2199 -e SC2207 -e SC2219 -e SC2220 -e SC2230 -e SC2231 -e SC2235 shfmt: name: shfmt diff --git a/tests/apps/.websocket.disabled/check_deploy b/tests/apps/.websocket.disabled/check_deploy index 892f47082..71e75979b 100755 --- a/tests/apps/.websocket.disabled/check_deploy +++ b/tests/apps/.websocket.disabled/check_deploy @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -e output="$(curl -s -S -i -N -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" -H \"Host: $1\" -H \"Origin: $1\" $1 -m 2)" -echo $output +echo "$output" test "$output" == "bazingaa"