mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00

- Some tests can not work at rpmbuild time, because we can not run rpmbuild in rpmbuild, and there's no .git/ directory, skip. - Use 'titodir' below 'srcdir', to not pollute the /tmp/tito dir. - The test_colors() test requires color-friendly TERM env. - EL7 is EOL, do not enable tests there.
10 lines
172 B
Bash
Executable file
10 lines
172 B
Bash
Executable file
#! /bin/bash -e
|
|
cov=--cov
|
|
args=()
|
|
for arg; do
|
|
case $arg in
|
|
--no-cov) cov= ;;
|
|
*) args+=( "$arg" )
|
|
esac
|
|
done
|
|
PYTHONPATH=$PWD/src exec python3 -m pytest -vv $cov "${args[@]}"
|