Fix warnings reported by bashate.
See https://pypi.org/project/bashate/ for more info.
This commit is contained in:
@@ -18,7 +18,7 @@ export PYTHONDONTWRITEBYTECODE=1
|
|||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
topdir=$(pwd)
|
topdir=$(pwd)
|
||||||
|
|
||||||
function banner() {
|
function banner {
|
||||||
echo "====== $@ ======"
|
echo "====== $@ ======"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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 ==="
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user