dak-coverage.sh 495 B

123456789101112131415161718
  1. #!/bin/bash
  2. # wrapper to collect coverage info when running dak
  3. export COVERAGE_FILE="${DAK_ROOT}/.coverage"
  4. if [ "$DAK_PYTHON3" = "y" ]
  5. then
  6. exec python3-coverage run --rcfile "${DAK_ROOT}/.coveragerc" --source "${DAK_ROOT}" --parallel-mode "${DAK_ROOT}/dak/dak.py" "$@"
  7. fi
  8. if [ "$RUN_COVERAGE" = "y" ]
  9. then
  10. exec python-coverage run --rcfile "${DAK_ROOT}/.coveragerc" --source "${DAK_ROOT}" --parallel-mode "${DAK_ROOT}/dak/dak.py" "$@"
  11. else
  12. exec python "${DAK_ROOT}/dak/dak.py" "$@"
  13. fi