diff options
author | Xiretza | 2020-09-28 16:04:09 +0200 |
---|---|---|
committer | Igor Dejanovic | 2020-10-03 19:23:03 +0200 |
commit | 51bafeb29077157a8abce12a8f21917346c26521 (patch) | |
tree | ebbca4e2bc3254a364dcb61277c146b650ac86cd /PKGBUILD | |
parent | e461f218ee7305dda5d00d9669c89c30f305d7f8 (diff) | |
download | aur-51bafeb29077157a8abce12a8f21917346c26521.tar.gz |
Install test deps to tmpdir, add bindir to PATH
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -20,9 +20,11 @@ build() { } check() { - cd $_srcname-$pkgver + tmpdir=$(mktemp -d) + export PYTHONUSERBASE="$tmpdir" + # Install all tests projects pip install --user -e . || exit 1 pip install --user -e tests/functional/subcommands/example_project || exit 1 @@ -32,7 +34,7 @@ check() { pip install --user -e tests/functional/registration/projects/flow_codegen || exit 1 # Run all tests - python setup.py pytest --addopts tests/functional + PATH="$tmpdir/bin:$PATH" pytest --ignore tests/perf # Uninstall all test projects pip uninstall -y textX || exit 1 @@ -41,6 +43,8 @@ check() { pip uninstall -y data_dsl || exit 1 pip uninstall -y flow_dsl || exit 1 pip uninstall -y flow_codegen || exit 1 + + rm -rf "$tmpdir" } package() { |