Fix test script macOS bash compatibility.
This commit is contained in:
parent
9295988af3
commit
262385e429
|
@ -26,7 +26,7 @@ if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
if [ ${RUN_TEST=1} -eq 1 ]; then
|
if [ ${RUN_TEST=1} -eq 1 ]; then
|
||||||
for ex in `\ls -1 tests/*.d`; do
|
for ex in `\ls -1 tests/*.d`; do
|
||||||
script="${ex:0:-2}.sh"
|
script="${ex%.d}.sh"
|
||||||
if [ -e "$script" ]; then
|
if [ -e "$script" ]; then
|
||||||
echo "[INFO] Running test scipt $script"
|
echo "[INFO] Running test scipt $script"
|
||||||
(cd tests && "./${script:6}")
|
(cd tests && "./${script:6}")
|
||||||
|
|
Loading…
Reference in a new issue