mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
validate:launcher: Add an option to only launch the http server
This commit is contained in:
parent
8a295da795
commit
0b4bd7940a
1 changed files with 8 additions and 1 deletions
|
@ -218,6 +218,9 @@ def main():
|
|||
http_server_group.add_argument("-s", "--folder-for-http-server", dest="http_server_dir",
|
||||
default=None,
|
||||
help="Folder in which to create an http server on localhost. Default is PATHS")
|
||||
http_server_group.add_argument("--http-only", dest="httponly",
|
||||
default=False, action='store_true',
|
||||
help="Start the http server and quit")
|
||||
|
||||
assets_group = parser.add_argument_group("Handle remote assets")
|
||||
assets_group.add_argument("-u", "--update-assets-command", dest="update_assets_command",
|
||||
|
@ -319,9 +322,13 @@ def main():
|
|||
return 0
|
||||
|
||||
httpsrv = HTTPServer(options)
|
||||
if tests_launcher.needs_http_server():
|
||||
if tests_launcher.needs_http_server() or options.httponly is True:
|
||||
httpsrv.start()
|
||||
|
||||
if options.httponly is True:
|
||||
print "Running HTTP server only"
|
||||
return
|
||||
|
||||
e = None
|
||||
try:
|
||||
tests_launcher.run_tests()
|
||||
|
|
Loading…
Reference in a new issue