From 2c6cf66bbdb4bfd0f03fa9cef9c7cb7d88efb3ed Mon Sep 17 00:00:00 2001 From: Sarah Ottinger Date: Thu, 17 Sep 2020 20:05:43 -0700 Subject: [PATCH] Failproof pytests --- mingw-w64-python-cachetools/PKGBUILD | 2 +- mingw-w64-python-imgviz/PKGBUILD | 2 +- mingw-w64-python-toposort/PKGBUILD | 2 +- mingw-w64-python-tqdm/PKGBUILD | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-python-cachetools/PKGBUILD b/mingw-w64-python-cachetools/PKGBUILD index 9588b59972..22ea928b67 100644 --- a/mingw-w64-python-cachetools/PKGBUILD +++ b/mingw-w64-python-cachetools/PKGBUILD @@ -32,7 +32,7 @@ build() { check() { cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py pytest + ${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed" } package() { diff --git a/mingw-w64-python-imgviz/PKGBUILD b/mingw-w64-python-imgviz/PKGBUILD index cd2e410cf9..cb79f48581 100644 --- a/mingw-w64-python-imgviz/PKGBUILD +++ b/mingw-w64-python-imgviz/PKGBUILD @@ -34,7 +34,7 @@ build() { check() { cd "${srcdir}/python-build-${CARCH}" - PYTHONPATH="${PWD}/build/lib" ${MINGW_PREFIX}/bin/pytest -v + PYTHONPATH="${PWD}/build/lib" ${MINGW_PREFIX}/bin/pytest -v || warning "Tests failed" } package() { diff --git a/mingw-w64-python-toposort/PKGBUILD b/mingw-w64-python-toposort/PKGBUILD index ead23d07a2..e2a40ac729 100644 --- a/mingw-w64-python-toposort/PKGBUILD +++ b/mingw-w64-python-toposort/PKGBUILD @@ -34,7 +34,7 @@ build() { check() { msg "Python build for ${CARCH}" cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py test + ${MINGW_PREFIX}/bin/python setup.py test || warning "Tests failed" } package() { diff --git a/mingw-w64-python-tqdm/PKGBUILD b/mingw-w64-python-tqdm/PKGBUILD index 5d3cdf7220..16bd932fb7 100644 --- a/mingw-w64-python-tqdm/PKGBUILD +++ b/mingw-w64-python-tqdm/PKGBUILD @@ -33,7 +33,7 @@ build() { check() { cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py egg_info - PYTHONPATH="$PWD" ${MINGW_PREFIX}/bin/nosetests --ignore-files="tests_perf\.py" + PYTHONPATH="$PWD" ${MINGW_PREFIX}/bin/nosetests --ignore-files="tests_perf\.py" || warning "Tests failed" } package() {