Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
6a9dbeff
Commit
6a9dbeff
authored
Mar 27, 2012
by
Mukund Sivaraman
Browse files
[master] Show testnames when running Python unit tests
parent
5ef450d4
Changes
62
Hide whitespace changes
Inline
Side-by-side
src/bin/bind10/tests/args_test.py
View file @
6a9dbeff
...
...
@@ -154,4 +154,4 @@ class TestBossArgs(unittest.TestCase):
bob
.
wait
()
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/bind10/tests/bind10_test.py.in
View file @
6a9dbeff
...
...
@@ -1467,4 +1467,4 @@ if __name__ == '__main__':
# store os.environ for test_unchanged_environment
original_os_environ = copy.deepcopy(os.environ)
isc.log.resetUnitTestRootLogger()
unittest.main()
unittest.main(
verbosity=2
)
src/bin/bindctl/tests/bindctl_test.py
View file @
6a9dbeff
...
...
@@ -470,5 +470,5 @@ class TestCommandLineOptions(unittest.TestCase):
[
'--csv-file-dir'
])
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/bindctl/tests/cmdparse_test.py
View file @
6a9dbeff
...
...
@@ -84,5 +84,5 @@ class TestCmdParse(unittest.TestCase):
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/cfgmgr/plugins/tests/logging_test.py
View file @
6a9dbeff
...
...
@@ -132,4 +132,4 @@ class LoggingConfCheckTest(unittest.TestCase):
'severity'
:
123
}]}))
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/cfgmgr/plugins/tests/tsig_keys_test.py
View file @
6a9dbeff
...
...
@@ -100,4 +100,4 @@ class TSigKeysTest(unittest.TestCase):
self
.
assertNotEqual
(
None
,
tsig_keys
.
check
({
'keys'
:
{}}))
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/cfgmgr/tests/b10-cfgmgr_test.py.in
View file @
6a9dbeff
...
...
@@ -201,5 +201,5 @@ class TestParseArgs(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
unittest.main(
verbosity=2
)
src/bin/cmdctl/tests/cmdctl_test.py
View file @
6a9dbeff
...
...
@@ -483,6 +483,6 @@ class TestFuncNotInClass(unittest.TestCase):
if
__name__
==
"__main__"
:
isc
.
log
.
resetUnitTestRootLogger
()
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/ddns/tests/ddns_test.py
View file @
6a9dbeff
...
...
@@ -416,4 +416,4 @@ class TestMain(unittest.TestCase):
if
__name__
==
"__main__"
:
isc
.
log
.
resetUnitTestRootLogger
()
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/dhcp6/tests/dhcp6_test.py
View file @
6a9dbeff
...
...
@@ -68,4 +68,4 @@ class TestDhcpv6Daemon(unittest.TestCase):
print
(
"Ignoring failed kill attempt. Process is dead already."
)
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/msgq/tests/msgq_test.py
View file @
6a9dbeff
...
...
@@ -234,4 +234,4 @@ class SendNonblock(unittest.TestCase):
self
.
send_many
(
data
)
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/stats/tests/b10-stats-httpd_test.py
View file @
6a9dbeff
...
...
@@ -1326,4 +1326,4 @@ class TestStatsHttpd(unittest.TestCase):
imp
.
reload
(
stats_httpd
)
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/bin/stats/tests/b10-stats_test.py
View file @
6a9dbeff
...
...
@@ -912,7 +912,7 @@ class TestOSEnv(unittest.TestCase):
imp
.
reload
(
stats
)
def
test_main
():
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
if
__name__
==
"__main__"
:
test_main
()
src/bin/tests/process_rename_test.py.in
View file @
6a9dbeff
...
...
@@ -61,4 +61,4 @@ class TestRename(unittest.TestCase):
self.__scan(d, script, fun)
if __name__ == "__main__":
unittest.main()
unittest.main(
verbosity=2
)
src/bin/xfrin/tests/xfrin_test.py
View file @
6a9dbeff
...
...
@@ -2848,6 +2848,6 @@ class TestXfrinTransferStats(unittest.TestCase):
if
__name__
==
"__main__"
:
try
:
isc
.
log
.
resetUnitTestRootLogger
()
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
except
KeyboardInterrupt
as
e
:
print
(
e
)
src/bin/xfrout/tests/xfrout_test.py.in
View file @
6a9dbeff
...
...
@@ -1472,4 +1472,4 @@ class TestXfroutServer(unittest.TestCase):
if __name__== "__main__":
isc.log.resetUnitTestRootLogger()
unittest.main()
unittest.main(
verbosity=2
)
src/bin/zonemgr/tests/zonemgr_test.py
View file @
6a9dbeff
...
...
@@ -696,4 +696,4 @@ class TestZonemgr(unittest.TestCase):
if
__name__
==
"__main__"
:
isc
.
log
.
resetUnitTestRootLogger
()
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/lib/dns/python/tests/edns_python_test.py
View file @
6a9dbeff
...
...
@@ -174,4 +174,4 @@ class EDNSTest(unittest.TestCase):
self
.
rrttl_badver
,
self
.
opt_rdata
)
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/lib/dns/python/tests/message_python_test.py
View file @
6a9dbeff
...
...
@@ -624,4 +624,4 @@ test.example.com. 3600 IN A 192.0.2.2
self
.
p
,
"message_fromWire16.wire"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
src/lib/dns/python/tests/messagerenderer_python_test.py
View file @
6a9dbeff
...
...
@@ -117,4 +117,4 @@ class MessageRendererTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
renderer
.
set_compress_mode
,
"wrong"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
(
verbosity
=
2
)
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment