mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 06:52:57 +00:00

Inherited from Copr basecode, namely starting from https://github.com/fedora-copr/copr/pull/3299
18 lines
394 B
Bash
Executable file
18 lines
394 B
Bash
Executable file
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
args=()
|
|
|
|
coverage=( --cov-report term-missing --cov bin --cov dist_git_client )
|
|
for arg; do
|
|
case $arg in
|
|
--no-coverage) coverage=() ;;
|
|
*) args+=( "$arg" ) ;;
|
|
esac
|
|
done
|
|
|
|
abspath=$(readlink -f .)
|
|
export PYTHONPATH="${PYTHONPATH+$PYTHONPATH:}$abspath"
|
|
export PATH=$(readlink -f bin):$PATH
|
|
"${PYTHON:-python3}" -m pytest -s tests "${coverage[@]}" "${args[@]}"
|