mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
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.
This commit is contained in:
committed by
Yu Watanabe
parent
6783f31c9c
commit
0765763e51
@@ -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)
|
||||
|
Reference in New Issue
Block a user