mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +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
|
ScenarioManager().config = options
|
||||||
tests_launcher.list_tests()
|
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)
|
httpsrv = HTTPServer(options)
|
||||||
if tests_launcher.needs_http_server():
|
if tests_launcher.needs_http_server():
|
||||||
httpsrv.start()
|
httpsrv.start()
|
||||||
|
|
||||||
e = None
|
e = None
|
||||||
try:
|
try:
|
||||||
if options.list_tests:
|
|
||||||
for test in tests_launcher.tests:
|
|
||||||
printc(test)
|
|
||||||
return 0
|
|
||||||
|
|
||||||
tests_launcher.run_tests()
|
tests_launcher.run_tests()
|
||||||
tests_launcher.final_report()
|
tests_launcher.final_report()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue