This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository netcdf4-python.
commit 0191d1a4d152a493f4980883f283a43a7a0c01e2 Author: Bas Couwenberg <sebas...@xs4all.nl> Date: Fri Jun 5 00:56:46 2015 +0200 Don't run test that requires network connectivity. --- debian/changelog | 1 + debian/patches/no-online-tests.patch | 17 +++++++++++++++++ debian/patches/series | 1 + debian/rules | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4c7349f..aaf3db6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ netcdf4-python (1.1.8-1) UNRELEASED; urgency=medium prevents unexpected upstream changes dpkg-source error. * Also install examples. * Override dh_auto_test to use custom pybuild test for all tests. + * Don't run test that requires network connectivity. -- Bas Couwenberg <sebas...@debian.org> Thu, 04 Jun 2015 23:12:36 +0200 diff --git a/debian/patches/no-online-tests.patch b/debian/patches/no-online-tests.patch new file mode 100644 index 0000000..892656c --- /dev/null +++ b/debian/patches/no-online-tests.patch @@ -0,0 +1,17 @@ +Description: Don't run tests that require network connectivity if NO_NET is set. +Author: Bas Couwenberg <sebas...@debian.org> + +--- a/test/run_all.py ++++ b/test/run_all.py +@@ -18,6 +18,11 @@ if __netcdf4libversion__ < '4.2.1': + test_files.remove('tst_diskless.py') + sys.stdout.write('not running tst_diskless.py ...\n') + ++# Don't run tests that require network connectivity ++if os.environ['NO_NET']: ++ test_files.remove('tst_dap.py'); ++ sys.stdout.write('not running tst_dap.py ...\n') ++ + # Build the test suite from the tests found in the test files. + testsuite = unittest.TestSuite() + for f in test_files: diff --git a/debian/patches/series b/debian/patches/series index 7ae9f23..d2ef1c5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ cython-clean.patch +no-online-tests.patch diff --git a/debian/rules b/debian/rules index 081900c..cf4fa15 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,7 @@ export USE_NCCONFIG=1 override_dh_auto_test: PYBUILD_SYSTEM=custom \ - PYBUILD_TEST_ARGS="cd test && {interpreter} run_all.py" dh_auto_test + PYBUILD_TEST_ARGS="cd test && NO_NET=1 {interpreter} run_all.py" dh_auto_test override_dh_auto_install: dh_auto_install -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf4-python.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel