Fix warnings reported by bashate.

See https://pypi.org/project/bashate/ for more info.
This commit is contained in:
Dan Gohman
2018-05-24 16:53:34 -07:00
parent a6e6b79a2e
commit 99f6055c55
3 changed files with 4 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ export PYTHONDONTWRITEBYTECODE=1
cd $(dirname "$0") cd $(dirname "$0")
topdir=$(pwd) topdir=$(pwd)
function banner() { function banner {
echo "====== $@ ======" echo "====== $@ ======"
} }

View File

@@ -8,15 +8,14 @@ set -euo pipefail
cd $(dirname "$0") cd $(dirname "$0")
topdir=$(pwd) topdir=$(pwd)
function banner() { function banner {
echo "====== $@ ======" echo "====== $@ ======"
} }
# Test those packages which have no_std support. # Test those packages which have no_std support.
LIBS="codegen frontend wasm native module simplejit umbrella" LIBS="codegen frontend wasm native module simplejit umbrella"
cd "$topdir" cd "$topdir"
for LIB in $LIBS for LIB in $LIBS; do
do
banner "Rust unit tests in $LIB" banner "Rust unit tests in $LIB"
cd "lib/$LIB" cd "lib/$LIB"

View File

@@ -2,7 +2,7 @@
set -euo pipefail set -euo pipefail
cd $(dirname "$0") cd $(dirname "$0")
function runif() { function runif {
if command -v "$1" > /dev/null; then if command -v "$1" > /dev/null; then
echo " === $1 ===" echo " === $1 ==="
"$@" "$@"