Skip to content

Commit

Permalink
Tests: Fix some shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Feb 4, 2018
1 parent b5c7f04 commit cb40781
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else
fi

echo -e '\e[32mTesting tests directory\e[0m'
if ! $python $(which nosetests) --with-coverage tests/*; then
if ! $python "$(which nosetests)" --with-coverage tests/*; then
exit 1
fi
mv .coverage{,.tests}
Expand All @@ -78,8 +78,8 @@ fi

count=0
for f in $main_folder/examples/*.py; do
echo -e '\e[32mTesting '$f'\e[0m'
if ! $python $(which coverage) run $f; then
echo -e '\e[32mTesting '"$f"'\e[0m'
if ! $python "$(which coverage)" run "$f"; then
exit 1
fi
((count ++))
Expand All @@ -89,18 +89,18 @@ done
coverage combine

if [ "$clean" = 'TRUE' ]; then
rm *.pdf *.log *.aux *.tex *.fls *.fdb_latexmk > /dev/null
rm -- *.pdf *.log *.aux *.tex *.fls *.fdb_latexmk > /dev/null
fi


if [[ "$nodoc" != 'TRUE' && "$python_version" == "3" && "$python_version_long" != 3.3.* && "$python_version_long" != 3.4.* ]]; then
echo -e '\e[32mChecking for errors in docs and docstrings\e[0m'
cd docs
set -e
./create_doc_files.sh -p $python
./create_doc_files.sh -p "$python"
make clean
set +e
if ! $python $(which sphinx-build) -b html -d build/doctrees/ source build/html -nW; then
if ! $python "$(which sphinx-build)" -b html -d build/doctrees/ source build/html -nW; then
exit 1
fi
fi

0 comments on commit cb40781

Please sign in to comment.