mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
launcher: --sync: Only update/clone git repo if specified
Allows: * handling non-git-based asset directory * working offline * working without forcing updates
This commit is contained in:
parent
34a5946e6b
commit
71dee6c384
1 changed files with 3 additions and 1 deletions
|
@ -123,6 +123,8 @@ def main():
|
|||
assets_group.add_option("", "--remote-assets-url", dest="remote_assets_url",
|
||||
default=DEFAULT_GST_QA_ASSETS_REPO,
|
||||
help="Url to the remote assets")
|
||||
assets_group.add_option("-S", "--sync", dest="sync", action="store_true",
|
||||
default=False, help="Synchronize asset repository")
|
||||
parser.add_option_group(assets_group)
|
||||
|
||||
loggable.init("GST_VALIDATE_LAUNCHER_DEBUG", True, False)
|
||||
|
@ -161,7 +163,7 @@ def main():
|
|||
|
||||
tests_launcher.set_settings(options, args)
|
||||
|
||||
if options.remote_assets_url:
|
||||
if options.remote_assets_url and options.sync:
|
||||
if os.path.exists(options.clone_dir):
|
||||
launch_command("cd %s && %s" % (options.clone_dir,
|
||||
options.update_assets_command))
|
||||
|
|
Loading…
Reference in a new issue