mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
launcher: No need to start a web server when listing tests
It's not needed and makes listing faster. Also sort the list of tests
This commit is contained in:
parent
71dee6c384
commit
e62a2ce4c4
1 changed files with 7 additions and 5 deletions
|
@ -176,17 +176,19 @@ def main():
|
|||
ScenarioManager().config = options
|
||||
tests_launcher.list_tests()
|
||||
|
||||
if options.list_tests:
|
||||
l = tests_launcher.tests
|
||||
l.sort()
|
||||
for test in l:
|
||||
printc(test)
|
||||
return 0
|
||||
|
||||
httpsrv = HTTPServer(options)
|
||||
if tests_launcher.needs_http_server():
|
||||
httpsrv.start()
|
||||
|
||||
e = None
|
||||
try:
|
||||
if options.list_tests:
|
||||
for test in tests_launcher.tests:
|
||||
printc(test)
|
||||
return 0
|
||||
|
||||
tests_launcher.run_tests()
|
||||
tests_launcher.final_report()
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue