[bind10-dev] unit test problems

Jeremy C. Reed jreed at isc.org
Fri Aug 20 15:55:23 UTC 2010


On Tue, 17 Aug 2010, JINMEI Tatuya / ???? wrote:

> > This is misleading. And it led me to a potential bug: the Makefile would 
> > exclude possible tests. Here is my proposed patch for /src/lib/config:
> 
> I agree with this and committed the proposed fix to trunk (r2755).

Thanks.

> I think other things are error log messages from the main code.  I
> guess we can eventually solve this by migrating to the formal logging
> framework, and can be ignored for now unless it causes something
> harmful in practice (except the noisy output).

The noisy output is misleading, so I didn't know if I can ignore or not.

For example, I see the following says "test exception" but also has a 
traceback but since it doesn't fail I guess that was expected.... but 
don't really know for sure.

Making check in xfrin
Making check in tests
make  check-local
for pytest in xfrin_test.py ; do  echo Running test: $pytest ;  env PYTHONPATH=/backup/isc-work-svn/svn/branches/trac316/src/lib/dns/python/.libs:/backup/isc-work-svn/svn/branches/trac316/src/bin/xfrin:/backup/isc-work-svn/svn/branches/trac316/src/lib/python:/backup/isc-work-svn/svn/branches/trac316/src/lib/python  /usr/pkg/bin/python3.1 /backup/isc-work-svn/svn/branches/trac316/src/bin/xfrin/tests/$pytest || exit ;  done
Running test: xfrin_test.py
.[b10-xfrin] test error
[b10-xfrin] Error happened! is the command channel daemon running?
.[b10-xfrin] test exception
.[b10-xfrin] exit b10-xfrin
.[b10-xfrin] bad format for zone's master: {'master_port': 53, 'master_addr': '1111.1.1.1'}
[b10-xfrin] bad format for zone's master: {'master_port': 530000, 'master_addr': '2.2.2.2'}
.Exception in thread Thread-1:
Traceback (most recent call last):
  File "/backup/isc-work-svn/svn/branches/trac316/src/lib/python/isc/datasrc/sqlite3_ds.py", line 76, in open
    conn = sqlite3.connect(dbfile)
TypeError: argument 1 must be string, not None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/pkg/lib/python3.1/threading.py", line 509, in _bootstrap_inner
    self.run()
  File "/usr/pkg/lib/python3.1/threading.py", line 462, in run
    self._target(*self._args, **self._kwargs)
  File "/backup/isc-work-svn/svn/branches/trac316/src/bin/xfrin/xfrin.py", line 331, in process_xfrin
    ret = conn.do_xfrin(check_soa)
  File "/backup/isc-work-svn/svn/branches/trac316/src/bin/xfrin/xfrin.py", line 197, in do_xfrin
    self._handle_xfrin_response)
  File "/backup/isc-work-svn/svn/branches/trac316/src/lib/python/isc/datasrc/sqlite3_ds.py", line 205, in load
    conn, cur = open(dbfile)
  File "/backup/isc-work-svn/svn/branches/trac316/src/lib/python/isc/datasrc/sqlite3_ds.py", line 79, in open
    fail = "Failed to open " + dbfile + ": " + e.args[0]
TypeError: Can't convert 'NoneType' object to str implicitly

...[b10-xfrin] error happened for command: retransfer, failed to resolve master address/port=invalid/53535: [Errno 8] hostname nor servname provided, or not known
................................................
----------------------------------------------------------------------
Ran 56 tests in 1.308s

OK



More information about the bind10-dev mailing list