),
DEFAULT_MAIN_DIR,
"\n * ".join([getattr(Protocols, att) for att in
- dir(Protocols) if isinstance(getattr(Protocols, att), str)
- and not att.startswith("_")]))
+ dir(Protocols) if isinstance(getattr(Protocols, att), str) and not
+ att.startswith("_")]))
QA_ASSETS = "gst-integration-testsuites"
MEDIAS_FOLDER = "medias"
self.get_assets_command = "git clone"
self.remote_assets_url = DEFAULT_GST_QA_ASSETS_REPO
self.sync = False
+ self.force_sync = False
self.sync_all = False
def cleanup(self):
if self.generate_info_full is True:
self.generate_info = True
- if self.sync_all is True:
+ if self.sync_all is True or self.force_sync is True:
self.sync = True
if not self.sync and not os.path.exists(self.clone_dir) and \
help="Url to the remote assets (default:%s)" % DEFAULT_GST_QA_ASSETS_REPO)
assets_group.add_argument("-S", "--sync", dest="sync", action="store_true",
help="Synchronize asset repository")
+ assets_group.add_argument("-fs", "--force-sync", dest="force_sync", action="store_true",
+ help="Synchronize asset repository reseting any change that might have"
+ " happened in the testsuite")
assets_group.add_argument("--sync-all", dest="sync_all", action="store_true",
help="Synchronize asset repository,"
" including big media files")
os.environ["DISPLAY"] = vfb_server.display_id
if options.httponly is True:
- print "Running HTTP server only"
+ print("Running HTTP server only")
return
e = None