diff --git a/cranelift/test-all.sh b/cranelift/test-all.sh index 96e81f1864..2f25e26f33 100755 --- a/cranelift/test-all.sh +++ b/cranelift/test-all.sh @@ -18,7 +18,7 @@ export PYTHONDONTWRITEBYTECODE=1 cd $(dirname "$0") topdir=$(pwd) -function banner() { +function banner { echo "====== $@ ======" } diff --git a/cranelift/test-no_std.sh b/cranelift/test-no_std.sh index 8c4d6ecfc1..8ca93f5d04 100755 --- a/cranelift/test-no_std.sh +++ b/cranelift/test-no_std.sh @@ -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" diff --git a/lib/codegen/meta/check.sh b/lib/codegen/meta/check.sh index fa86bf0804..d8f2178f43 100755 --- a/lib/codegen/meta/check.sh +++ b/lib/codegen/meta/check.sh @@ -2,7 +2,7 @@ set -euo pipefail cd $(dirname "$0") -function runif() { +function runif { if command -v "$1" > /dev/null; then echo " === $1 ===" "$@"