aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-simplejson
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-04-23 00:22:26 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-04-25 20:27:35 +0000
commita3fd8527470517a00d42660ecd85e696fdda0b1f (patch)
tree1e51c5f5572898e760c3a5b3eff6ab4641cf1970 /main/py-simplejson
parent2d63d211a8c686e6397cc29e2b90a4ae4c1d151c (diff)
downloadaports-a3fd8527470517a00d42660ecd85e696fdda0b1f.tar.bz2
aports-a3fd8527470517a00d42660ecd85e696fdda0b1f.tar.xz
main/py-simplejson: move tests to check function
Diffstat (limited to 'main/py-simplejson')
-rw-r--r--main/py-simplejson/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/py-simplejson/APKBUILD b/main/py-simplejson/APKBUILD
index 8b596ee1f3..c19347447d 100644
--- a/main/py-simplejson/APKBUILD
+++ b/main/py-simplejson/APKBUILD
@@ -12,15 +12,17 @@ depends=""
makedepends="py-setuptools python2-dev python3-dev"
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
-
python2 setup.py build
- python2 setup.py test
-
python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
python3 setup.py test
}