From 67cfa52b3121ccb456ec7f0e0e2590f7f1870f3c Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 9 Nov 2021 20:17:54 +0100 Subject: [PATCH] libvirt-python3: fix tests --- srcpkgs/libvirt-python3/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libvirt-python3/template b/srcpkgs/libvirt-python3/template index 1b43577da26..672cca09e74 100644 --- a/srcpkgs/libvirt-python3/template +++ b/srcpkgs/libvirt-python3/template @@ -6,10 +6,14 @@ wrksrc="libvirt-python-${version}" build_style=python3-module hostmakedepends="pkg-config python3-devel libvirt-devel libapparmor-devel" makedepends="libvirt-devel python3-devel" -checkdepends="python3-lxml python3-nose" +checkdepends="python3-pytest python3-lxml python3-nose" short_desc="Libvirt virtualization API Python3 binding" maintainer="Helmut Pozimski " license="LGPL-2.1-or-later" homepage="https://pypi.org/project/libvirt-python/" distfiles="https://libvirt.org/sources/python/libvirt-python-${version}.tar.gz" checksum=8535cffa5fbf05185648f9f57a2f71899c3bc12c897d320351c53725a48e5359 + +do_check() { + PYTHONPATH="$(cd build/lib.* && pwd)" pytest +}