[bind10-dev] unit test problems

zhanglikun zlkzhy at gmail.com
Mon Aug 23 01:37:25 UTC 2010


I will redirect the output to /dev/null to avoid the noisy output, any
better solution?


> 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-wor
k-
>
svn/svn/branches/trac316/src/lib/python:/backup/isc-work-svn/svn/branches/tr
> ac316/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/sqlite
3
> _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/sqlite
3
> _ds.py", line 205, in load
>     conn, cur = open(dbfile)
>   File
>
"/backup/isc-work-svn/svn/branches/trac316/src/lib/python/isc/datasrc/sqlite
3
> _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