From: Daan De Meyer Date: Tue, 15 Feb 2022 11:50:31 +0000 (+0000) Subject: test: Stop using TextTestRunner in systemd-networkd-tests.py X-Git-Tag: v251-rc1~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0765763e5110443f27a88b378f5af36d0117cd92;p=thirdparty%2Fsystemd.git test: Stop using TextTestRunner in systemd-networkd-tests.py If we assign our own test runner, passing arguments stops working as unittest won't instantiate its own test runner after it parses the arguments from sys.argv. Consequence is that the tests will write to stderr now instead of stdout since it doesn't seem possible to configure the stream that unittest.main() will instantiate its test runner with so it'll default to sys.stderr. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 6fc8398e0f6..a778652a8ea 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -5933,5 +5933,4 @@ if __name__ == '__main__': env.update({ 'UBSAN_OPTIONS' : ubsan_options }) sys.argv[1:] = unknown_args - unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, - verbosity=3)) + unittest.main(verbosity=3)