[game-data-packager] 05/10: integration: Allow skipping test while offline
Simon McVittie
smcv at debian.org
Sun Apr 30 21:11:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit 17a8abdd0815ee2e9ea39a9821be3cd01cf72cf1
Author: Simon McVittie <smcv at debian.org>
Date: Sun Apr 30 16:27:18 2017 +0100
integration: Allow skipping test while offline
---
debian/rules | 2 ++
tests/integration.py | 2 ++
2 files changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index aa404b5..2cb68b0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,8 @@ export HOME = $(CURDIR)/debian/temp-home
export XDG_CACHE_HOME = $(CURDIR)/debian/temp-home/.cache
export XDG_CONFIG_HOME = $(CURDIR)/debian/temp-home/.config
export XDG_DATA_HOME = $(CURDIR)/debian/temp-home/.local/share
+# Disable integration test
+export GDP_MIRROR = none
override_dh_auto_configure:
dh_auto_configure \
diff --git a/tests/integration.py b/tests/integration.py
index c320d0c..76a5a7d 100644
--- a/tests/integration.py
+++ b/tests/integration.py
@@ -41,6 +41,8 @@ class IntegrationTestCase(unittest.TestCase):
def setUp(self):
if 'GDP_MIRROR' in os.environ:
self.downloads = None
+ if os.environ['GDP_MIRROR'] == 'none':
+ self.skipTest('GDP_MIRROR is set to "none"')
else:
if GLib is None:
self.skipTest('GLib g-i bindings not available')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list