Commit 15f7dcb7 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Tolerate absence of examples folder in run_examples

parent 5a02ed58
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -346,6 +346,9 @@ test_py_project()

run_examples()
{
  if ! test -d examples; then
    echo "!!! No 'examples' directory found"
  else
    cd examples
    for i in $(find . -name '*.py' -exec grep -q __main__ '{}' \; -print ); do
      echo "-----------------------------------------------------------------------"
@@ -355,6 +358,7 @@ run_examples()
      bn=$(basename "$i")
      (cd "$dn"; time ${PY_EXE} "$bn")
    done
  fi
}

# }}}