dak-coverage.sh 329 B

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