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
Wed Feb 22 13:39:48 UTC 2012
#1702: src/bin/stats/tests/test_utils.py can't find isc.config.cfgmgr
-------------------------------------+-------------------------------------
Reporter: jreed | Owner:
Type: defect | Status: new
Priority: major | Milestone: New
Component: Unclassified | Tasks
Sensitive: 0 | Keywords:
Sub-Project: Core | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
http://git.bind10.isc.org/~tester/2011/10/20111003063457-85e4dfa/make-
coverage.out failed starting October 3. No notification so the coverage
reports weren't updated since then.
This happens when ran using python coverage (via make coverage).
The error is:
{{{
make[5]: Entering directory `/home/tester/git-
bind10/bind10/src/bin/stats/tests'
touch /home/tester/git-bind10/bind10/.coverage
rm -f .coverage
ln -s /home/tester/git-bind10/bind10/.coverage .coverage
for pytest in b10-stats_test.py b10-stats-httpd_test.py ; do \
echo Running test: $pytest ; \
\
PYTHONPATH=/home/tester/git-
bind10/bind10/src/lib/python/isc/log_messages:/home/tester/git-
bind10/bind10/src/lib/python:/home/tester/git-
bind10/bind10/src/lib/python:/home/tester/git-
bind10/bind10/src/bin/stats:/home/tester/git-
bind10/bind10/src/bin/stats/tests:/home/tester/git-
bind10/bind10/src/bin/msgq:/home/tester/git-
bind10/bind10/src/lib/python/isc/config \
B10_FROM_SOURCE=/home/tester/git-bind10/bind10 \
CONFIG_TESTDATA_PATH=/home/tester/git-
bind10/bind10/src/lib/config/tests/testdata \
/opt/pkg/bin/coverage run --branch --append /home/tester/git-
bind10/bind10/src/bin/stats/tests/$pytest || exit ; \
done
Running test: b10-stats_test.py
Traceback (most recent call last):
File "/opt/pkg/bin/coverage", line 9, in <module>
load_entry_point('coverage==3.2', 'console_scripts', 'coverage')()
File "/opt/pkg/lib/python3.1/site-packages/coverage/cmdline.py", line
590, in main
status = CoverageScript().command_line(sys.argv[1:])
File "/opt/pkg/lib/python3.1/site-packages/coverage/cmdline.py", line
468, in command_line
self.run_python_file(args[0], args)
File "/opt/pkg/lib/python3.1/site-packages/coverage/execfile.py", line
43, in run_python_file
exec_function(source, filename, main_mod.__dict__)
File "/opt/pkg/lib/python3.1/site-packages/coverage/backward.py", line
62, in exec_function
exec(compile(source, filename, "exec"), global_map)
File "/home/tester/git-
bind10/bind10/src/bin/stats/tests/b10-stats_test.py", line 33, in <module>
from test_utils import BaseModules, ThreadingServerManager, MyStats,
SignalHandler, send_command, send_shutdown
File "/home/tester/git-bind10/bind10/src/bin/stats/tests/test_utils.py",
line 15, in <module>
import isc.config.cfgmgr
ImportError: No module named cfgmgr
make[5]: *** [check-local] Error 1
make[5]: Leaving directory `/home/tester/git-
bind10/bind10/src/bin/stats/tests'
}}}
This happened here:
git diff f9cb0d1..85e4dfa
Which was introduced here:
{{{
291. [func] naokikambe
Statistics items are specified by each module's spec file.
Stats module can read these through the config manager. Stats
module and stats httpd report statistics data and statistics
schema by each module via both bindctl and HTTP/XML.
(Trac #928,#929,#930,#1175, git
054699635affd9c9ecbe7a108d880829f3ba229e)
}}}
You can also see this failure is in latest report:
http://git.bind10.isc.org/~tester/2012/02/20120221190111-18eda22/make-
coverage.out
--
Ticket URL: <http://bind10.isc.org/ticket/1702>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list