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")
topdir=$(pwd)
function banner() {
function banner {
echo "====== $@ ======"
}

View File

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

View File

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