From 8deb7641bdbd011c57b355741f2dbeb00141b79f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 12 Feb 2018 14:26:02 -0600 Subject: [PATCH] Fix example runner script --- build-py-project-and-run-examples.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-py-project-and-run-examples.sh b/build-py-project-and-run-examples.sh index b645afce4..e51a86d20 100644 --- a/build-py-project-and-run-examples.sh +++ b/build-py-project-and-run-examples.sh @@ -15,22 +15,22 @@ function run_examples() echo "-----------------------------------------------------------------------" dn=$(dirname "$i") bn=$(basename "$i") - (cd $dn; $CMDLINE "$bn") + (cd $dn; echo $CMDLINE "$bn"; $CMDLINE "$bn") done } function run_py_examples() { run_examples "*.py" ${PY_EXE} -end +} function run_ipynb_examples() { run_examples "*.ipynb" "${PY_EXE} -m nbconvert --execute" -end +} function run_floopy_examples() { run_examples "*.floopy" "${PY_EXE} -m loopy" -end +} run_py_examples run_ipynb_examples -- GitLab