sshuttle/tests/client
Scott Kuhl 7fc33c0020 Refactor debug, log and Fatal messages.
This commit rewrites the log() function so that it will append a
newline at the end of the message if none is present. It doesn't make
sense to print a log message without a newline since the next log
message (which will write a prefix) expects to be starting at the
beginning of a line.

Although it isn't strictly necessary, this commit also removes any
newlines at the ends of messages. If I missed any, including the
newline at the end of the message will continue to work as it did
before.

Previously, some calls were missing the newline at the end even though
including it was necessary for subsequent messages to appear
correctly.

This code also cleans up some redundant prefixes. The log() method
will prepend the prefix and the different processes should set their
prefix as soon as they start.

Multiline messages are still supported (although the prefix for the
additional lines was changed to match the length of the prefix used
for the first line).
2021-01-01 19:32:48 +11:00
..
test_firewall.py Refactor automatic method selection. 2020-12-28 10:21:56 +11:00
test_helpers.py Refactor debug, log and Fatal messages. 2021-01-01 19:32:48 +11:00
test_methods_nat.py IPv6 support in nft method. 2020-10-21 17:47:07 -04:00
test_methods_pf.py Improve consistency of PATH, environments, and which() 2020-10-23 20:33:20 -04:00
test_methods_tproxy.py Add tproxy udp port mark filter that was missed in #144, fixes #367. 2019-10-13 11:45:04 +11:00
test_options.py Remove localhost test since it can resolve to either IPv4, IPv6, or both in any particular order 2020-10-17 15:56:23 -04:00
test_sdnotify.py Fix/pep8 (#277) 2019-02-11 09:59:13 +11:00