fix shellcheck issues
This commit is contained in:
parent
69209f04df
commit
ddc8d31380
6
tests.sh
6
tests.sh
|
@ -62,7 +62,7 @@ fi
|
||||||
# ================================== SETUP =================================== #
|
# ================================== SETUP =================================== #
|
||||||
|
|
||||||
dir="$(readlink -f "tests/tmp")"
|
dir="$(readlink -f "tests/tmp")"
|
||||||
mkdir -p ${dir}
|
mkdir -p "${dir}"
|
||||||
rm -f tests.log
|
rm -f tests.log
|
||||||
|
|
||||||
echo "start OpenRefine server..."
|
echo "start OpenRefine server..."
|
||||||
|
@ -94,7 +94,7 @@ for i in "${!tests[@]}"; do
|
||||||
printf "%s\t%s\n" "${results[$i]}" "${tests[$i]}"
|
printf "%s\t%s\n" "${results[$i]}" "${tests[$i]}"
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
if [[ " ${results[@]} " =~ [1-9] ]]; then
|
if [[ " ${results[*]} " =~ [1-9] ]]; then
|
||||||
echo "failed tests! check tests.log for debugging"; echo
|
echo "failed tests! check tests.log for debugging"; echo
|
||||||
else
|
else
|
||||||
echo "all tests passed!"; echo
|
echo "all tests passed!"; echo
|
||||||
|
@ -104,4 +104,4 @@ fi
|
||||||
|
|
||||||
echo "cleanup..."
|
echo "cleanup..."
|
||||||
{ kill -9 "${pid_server}" && wait "${pid_server}"; } 2>/dev/null
|
{ kill -9 "${pid_server}" && wait "${pid_server}"; } 2>/dev/null
|
||||||
rm -rf ${dir}
|
rm -rf "${dir}"
|
||||||
|
|
Loading…
Reference in New Issue