[rasterio] 01/06: Fix tests

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Thu Nov 13 20:46:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository rasterio.

commit 329efb2ea10b83a7ee9b4de3f794e0e2ed84c85a
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Wed Nov 12 16:23:12 2014 +0100

    Fix tests
    
    fix
---
 debian/control | 4 +++-
 debian/rules   | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 5ed8203..ae80be7 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,9 @@ Build-Depends: debhelper (>= 9),
                python-enum34,
                python3-enum34,
                python-affine,
-               python3-affine
+               python3-affine,
+               python-pytest,
+               python3-pytest,
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/rasterio.git
 Vcs-Git: git://anonscm.debian.org/pkg-grass/rasterio.git
diff --git a/debian/rules b/debian/rules
index 8abe701..b69741a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,13 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME=rasterio
+#test_cli are disabled because they test the tool after installation
+export PYBUILD_BEFORE_TEST= cp -r {dir}/tests {build_dir};rm {build_dir}/tests/test_cli.py
+export PYBUILD_BEFORE_TEST_python3= cp -r {dir}/tests {build_dir};rm {build_dir}/tests/test_cli.py
+
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
+export PYBUILD_TEST_PYTEST=1
+
 
 %:
 	dh $@ --with python2,python3 --buildsystem pybuild

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/rasterio.git



More information about the Pkg-grass-devel mailing list