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

Disable doctests on mac because of old bash

parent d04f6028
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -35,9 +35,12 @@ if [ -d test ]; then
      TESTABLES="$TESTABLES ${RST_FILES[*]}"
    fi

    # macOS bash is too old for mapfile: Oh well, no doctests on mac.
    if [ "$(uname)" != "Darwin" ]; then
      mapfile -t DOCTEST_MODULES < <( git grep -l doctest -- ":(glob,top)$AK_PROJ_NAME/**/*.py" )
      TESTABLES="$TESTABLES ${DOCTEST_MODULES[@]}"
    fi
  fi

  if [[ -n "$TESTABLES" ]]; then
    echo "TESTABLES: $TESTABLES"