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
4568f3ae
Commit
4568f3ae
authored
May 18, 2012
by
Tomek Mrugalski
🛰
Browse files
[1281] Python DHCPv6 test now prints out a clarification.
parent
7538a37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/tests/dhcp6_test.py
View file @
4568f3ae
...
...
@@ -26,8 +26,14 @@ import isc
class
TestDhcpv6Daemon
(
unittest
.
TestCase
):
def
setUp
(
self
):
# redirect stdout to a pipe so we can check that our
# process spawning is doing the right thing with stdout
# Let's print this out before we redirect out stdout.
print
(
"Please ignore any socket errors. Purpose of this test is to"
)
print
(
"verify that DHCPv6 process could be started, not that socket"
)
print
(
"could be bound. Binding fails when run as non-root user."
)
# Redirect stdout to a pipe so we can check that our
# process spawning is doing the right thing with stdout.
self
.
old_stdout
=
os
.
dup
(
sys
.
stdout
.
fileno
())
self
.
pipes
=
os
.
pipe
()
os
.
dup2
(
self
.
pipes
[
1
],
sys
.
stdout
.
fileno
())
...
...
@@ -36,9 +42,6 @@ class TestDhcpv6Daemon(unittest.TestCase):
# to the main program ASAP in each test... this prevents
# hangs reading from the child process (as the pipe is only
# open in the child), and also insures nice pretty output
print
(
"Please ignore any socket errors. Purpose of this test is to"
)
print
(
"verify that DHCPv6 process could be started, not that socket"
)
print
(
"could be bound. Binding fails when run as non-root user."
)
def
tearDown
(
self
):
# clean up our stdout munging
...
...
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