mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/tlsh: actually wire up testsuite
Upstream has a testsuite, it's just in a different directory compared to the python module itself. It internally uses the script we used to crudely run, but it also actually checks the results against fixtures. As a result, it checks more than just "smoketest: does the module import and execute its functions without literally crashing". It also doesn't redirect the testsuite stdout/stderr to devnull, since it now actually does something constructive and we'd like to see the status from it. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -26,5 +26,5 @@ PATCHES=(
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test.py test.py test.py &> /dev/null || die
|
||||
../Testing/python_test.sh "${EPYTHON}" || die
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -30,5 +30,5 @@ src_prepare() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test.py test.py test.py &> /dev/null || die
|
||||
../Testing/python_test.sh "${EPYTHON}" || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user