BIND 10 #1702: src/bin/stats/tests/test_utils.py can't find isc.config.cfgmgr
BIND 10 Development
do-not-reply at isc.org
Thu Feb 23 06:49:23 UTC 2012
#1702: src/bin/stats/tests/test_utils.py can't find isc.config.cfgmgr
-------------------------------------+-------------------------------------
Reporter: jreed | Owner:
Type: | Status: new
defect | Milestone: New Tasks
Priority: major | Resolution:
Component: | Sensitive: 0
Unclassified | Sub-Project: Core
Keywords: | Estimated Difficulty: 0
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by naokikambe):
The ''PYTHONPATH'' might be wrong.
What can we see if the following patch is applied?
{{{#!patch
diff --git a/src/bin/stats/tests/Makefile.am
b/src/bin/stats/tests/Makefile.am
index 01254d4..87d0d5c 100644
--- a/src/bin/stats/tests/Makefile.am
+++ b/src/bin/stats/tests/Makefile.am
@@ -24,7 +24,7 @@ endif
B10_FROM_SOURCE=$(abs_top_srcdir) \
BIND10_MSGQ_SOCKET_FILE=$(abs_top_builddir)/msgq_socket \
CONFIG_TESTDATA_PATH=$(abs_top_srcdir)/src/lib/config/tests/testdata \
- $(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \
+ $(PYTHON) -v -c 'import sys;print(sys.path);import
isc.config.cfgmgr' || exit ; \
done
CLEANDIRS = __pycache__
}}}
Otherwise, can the following patch fix it?
{{{#!patch
diff --git a/src/bin/stats/tests/Makefile.am
b/src/bin/stats/tests/Makefile.am
index 01254d4..17f9236 100644
--- a/src/bin/stats/tests/Makefile.am
+++ b/src/bin/stats/tests/Makefile.am
@@ -20,7 +20,7 @@ endif
for pytest in $(PYTESTS) ; do \
echo Running test: $$pytest ; \
$(LIBRARY_PATH_PLACEHOLDER) \
-
PYTHONPATH=$(COMMON_PYTHON_PATH):$(abs_top_builddir)/src/bin/stats:$(abs_top_builddir)/src/bin/stats/tests:$(abs_top_builddir)/src/bin/msgq:$(abs_top_builddir)/src/lib/python/isc/config
\
+
PYTHONPATH=$(COMMON_PYTHON_PATH):$(abs_top_builddir)/src/bin/stats:$(abs_top_builddir)/src/bin/stats/tests:$(abs_top_builddir)/src/bin/msgq:$(abs_top_builddir)/src/lib/python
\
B10_FROM_SOURCE=$(abs_top_srcdir) \
BIND10_MSGQ_SOCKET_FILE=$(abs_top_builddir)/msgq_socket \
CONFIG_TESTDATA_PATH=$(abs_top_srcdir)/src/lib/config/tests/testdata \
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/1702#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list