1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#! /usr/bin/make -f
export PYBUILD_NAME=flaky
%:
dh $@ --buildsystem=pybuild
override_dh_auto_test:
# run tests after install: plugin needs to get registered by setup.py/entry_points
execute_after_dh_auto_install:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -k 'example and not options' --doctest-modules test/test_pytest/ && \
{interpreter} -m pytest -v -k 'example and not options' -n 1 test/test_pytest/ && \
{interpreter} -m pytest -v -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py && \
{interpreter} -m pytest -v --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py" \
dh_auto_test
|