[cod-tools] 01/01: Adding a patch to skip tests of cif_cod_numbers that require network access.

Andrius Merkys merkys-guest at moszumanska.debian.org
Tue Sep 26 09:55:21 UTC 2017


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

merkys-guest pushed a commit to branch master
in repository cod-tools.

commit ff9519c4c0b8784539e5f258cc7b144b2b7ea13c
Author: Andrius Merkys <andrius.merkys at gmail.com>
Date:   Tue Sep 26 12:54:45 2017 +0300

    Adding a patch to skip tests of cif_cod_numbers that require network access.
---
 debian/patches/disable-test-network-access.diff | 12 ++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 13 insertions(+)

diff --git a/debian/patches/disable-test-network-access.diff b/debian/patches/disable-test-network-access.diff
new file mode 100644
index 0000000..ddb545f
--- /dev/null
+++ b/debian/patches/disable-test-network-access.diff
@@ -0,0 +1,12 @@
+--- a/tests/cases/cif_cod_numbers_001.chk
++++ b/tests/cases/cif_cod_numbers_001.chk
+@@ -1,7 +1,4 @@
+ #!/bin/bash
+ 
+-if ! mysql -u cod_reader -h www.crystallography.net cod -e 'select 1' >/dev/null 2>&1
+-then
+-    echo Test skipped - could not connect to MySQL database
+-    exit 1
+-fi
++echo Test skipped - not running tests requiring network access 2>&1
++exit 1
diff --git a/debian/patches/series b/debian/patches/series
index 4250296..fc84163 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+disable-test-network-access.diff
 create-empty-dirs.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cod-tools.git



More information about the debian-science-commits mailing list