mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
launcher: Use gst-integration-testsuites FDO git repo
And make sure that people that were using the old repo get the origin repo properly updated. https://bugzilla.gnome.org/show_bug.cgi?id=743994
This commit is contained in:
parent
a85ace1783
commit
00b222f38f
1 changed files with 10 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import utils
|
import utils
|
||||||
import urlparse
|
import urlparse
|
||||||
import loggable
|
import loggable
|
||||||
|
@ -131,7 +132,8 @@ http://wiki.pitivi.org/wiki/Bug_reporting#Debug_logs).
|
||||||
|
|
||||||
QA_ASSETS = "gst-integration-testsuites"
|
QA_ASSETS = "gst-integration-testsuites"
|
||||||
MEDIAS_FOLDER = "medias"
|
MEDIAS_FOLDER = "medias"
|
||||||
DEFAULT_GST_QA_ASSETS_REPO = "https://gitlab.com/thiblahute/gst-integration-testsuites.git"
|
DEFAULT_GST_QA_ASSETS_REPO = "git://anongit.freedesktop.org/gstreamer/gst-integration-testsuites"
|
||||||
|
OLD_DEFAULT_GST_QA_ASSETS_REPO = "https://gitlab.com/thiblahute/gst-integration-testsuites.git"
|
||||||
DEFAULT_SYNC_ASSET_COMMAND = "git fetch origin && git checkout origin/master && git annex get medias/defaults/"
|
DEFAULT_SYNC_ASSET_COMMAND = "git fetch origin && git checkout origin/master && git annex get medias/defaults/"
|
||||||
DEFAULT_SYNC_ALL_ASSET_COMMAND = "git fetch origin && git checkout origin/master && git annex get ."
|
DEFAULT_SYNC_ALL_ASSET_COMMAND = "git fetch origin && git checkout origin/master && git annex get ."
|
||||||
DEFAULT_TESTSUITES_DIR = os.path.join(DEFAULT_MAIN_DIR, QA_ASSETS, "testsuites")
|
DEFAULT_TESTSUITES_DIR = os.path.join(DEFAULT_MAIN_DIR, QA_ASSETS, "testsuites")
|
||||||
|
@ -139,9 +141,16 @@ DEFAULT_TESTSUITES_DIR = os.path.join(DEFAULT_MAIN_DIR, QA_ASSETS, "testsuites")
|
||||||
|
|
||||||
def update_assets(options):
|
def update_assets(options):
|
||||||
try:
|
try:
|
||||||
|
if options.remote_assets_url == DEFAULT_GST_QA_ASSETS_REPO:
|
||||||
|
if re.findall("origin.*%s" % OLD_DEFAULT_GST_QA_ASSETS_REPO,
|
||||||
|
subprocess.check_output("cd %s && git remote -v" % options.clone_dir, shell=True)):
|
||||||
|
launch_command("cd %s && git remote set-url origin %s" % (options.clone_dir,
|
||||||
|
DEFAULT_GST_QA_ASSETS_REPO))
|
||||||
|
|
||||||
launch_command("cd %s && %s" % (options.clone_dir,
|
launch_command("cd %s && %s" % (options.clone_dir,
|
||||||
options.update_assets_command),
|
options.update_assets_command),
|
||||||
fails=True)
|
fails=True)
|
||||||
|
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
if "annex" in options.update_assets_command:
|
if "annex" in options.update_assets_command:
|
||||||
m = "\n\nMAKE SURE YOU HAVE git-annex INSTALLED!"
|
m = "\n\nMAKE SURE YOU HAVE git-annex INSTALLED!"
|
||||||
|
|
Loading…
Reference in a new issue