2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[2853] Skip running test_find_mapped() where shared memory is not available

This commit is contained in:
Mukund Sivaraman
2013-06-07 05:15:15 +05:30
parent 358984aecf
commit 3d96ea46c8
2 changed files with 9 additions and 0 deletions

View File

@@ -34,6 +34,11 @@ if ENABLE_PYTHON_COVERAGE
touch $(abs_top_srcdir)/.coverage
rm -f .coverage
${LN_S} $(abs_top_srcdir)/.coverage .coverage
endif
if USE_SHARED_MEMORY
HAVE_SHARED_MEMORY=yes
else
HAVE_SHARED_MEMORY=no
endif
for pytest in $(PYTESTS) ; do \
echo Running test: $$pytest ; \
@@ -41,6 +46,7 @@ endif
PYTHONPATH=:$(COMMON_PYTHON_PATH):$(abs_top_builddir)/src/lib/python/isc/log:$(abs_top_builddir)/src/lib/python/isc/datasrc/.libs:$(abs_top_builddir)/src/lib/dns/python/.libs \
TESTDATA_PATH=$(abs_srcdir)/testdata \
TESTDATA_WRITE_PATH=$(abs_builddir) \
HAVE_SHARED_MEMORY=$(HAVE_SHARED_MEMORY) \
GLOBAL_TESTDATA_PATH=$(abs_top_srcdir)/src/lib/testutils/testdata \
B10_FROM_BUILD=$(abs_top_builddir) \
$(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \

View File

@@ -170,6 +170,9 @@ class ClientListTest(unittest.TestCase):
"""
Test find on a mapped segment.
"""
if os.environ['HAVE_SHARED_MEMORY'] != 'yes':
return
self.clist = isc.datasrc.ConfigurableClientList(isc.dns.RRClass.IN)
self.clist.configure('''[{
"type": "MasterFiles",