From 5e13ba0424b9387260ca531e331cde6e75192bf8 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 8 Oct 2018 22:57:03 -0400 Subject: [PATCH] debian: Use 'setup.py test' to run tests Since pytest is a build-depend, pybuild uses it by default. Signed-off-by: James Valleroy --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index eac113d1f..0b67cf9f8 100755 --- a/debian/rules +++ b/debian/rules @@ -10,3 +10,7 @@ override_dh_auto_install-indep: dh_auto_install ./run --list-dependencies 2> /dev/null | sort | tr '\n' ', ' | \ sed -e 's/^/plinth:Depends=/' >> debian/plinth.substvars + +override_dh_auto_test: + PYBUILD_SYSTEM=custom \ + PYBUILD_TEST_ARGS="{interpreter} setup.py test" dh_auto_test