mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
validate:launcher: Sync asset only when passing --sync
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1020>
This commit is contained in:
parent
d189b0d0ec
commit
ce76a286ed
4 changed files with 29 additions and 18 deletions
|
@ -521,7 +521,7 @@ integration testsuites fedora:
|
||||||
extends: '.test fedora x86_64'
|
extends: '.test fedora x86_64'
|
||||||
parallel: 4
|
parallel: 4
|
||||||
variables:
|
variables:
|
||||||
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
|
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX} --sync"
|
||||||
TEST_SUITE: "validate ges"
|
TEST_SUITE: "validate ges"
|
||||||
|
|
||||||
# gstreamer-full:
|
# gstreamer-full:
|
||||||
|
|
|
@ -626,17 +626,6 @@ def setup_launcher_from_args(args, main_options=None):
|
||||||
if options.remote_assets_url and options.sync and not os.path.exists(options.clone_dir):
|
if options.remote_assets_url and options.sync and not os.path.exists(options.clone_dir):
|
||||||
if not download_assets(options):
|
if not download_assets(options):
|
||||||
return False, None, None
|
return False, None, None
|
||||||
|
|
||||||
for d in options.testsuites_dirs:
|
|
||||||
path = pathlib.Path(d).resolve()
|
|
||||||
if not path.as_posix().endswith('subprojects/gst-integration-testsuites/testsuites'):
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Ensure we have gst-integration-testsuites media files.
|
|
||||||
subprocess.check_call(['git', 'submodule', 'update', '--init'],
|
|
||||||
cwd=utils.DEFAULT_GST_QA_ASSETS)
|
|
||||||
subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
|
|
||||||
cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
|
|
||||||
# Ensure that the scenario manager singleton is ready to be used
|
# Ensure that the scenario manager singleton is ready to be used
|
||||||
ScenarioManager().config = options
|
ScenarioManager().config = options
|
||||||
if not tests_launcher.set_settings(options, []):
|
if not tests_launcher.set_settings(options, []):
|
||||||
|
|
|
@ -21,17 +21,29 @@
|
||||||
The GES GstValidate default testsuite
|
The GES GstValidate default testsuite
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
import pathlib
|
||||||
|
import subprocess
|
||||||
|
from launcher import utils
|
||||||
from testsuiteutils import update_assets
|
from testsuiteutils import update_assets
|
||||||
from ges_known_issues import KNOWN_ISSUES
|
from ges_known_issues import KNOWN_ISSUES
|
||||||
|
|
||||||
|
|
||||||
TEST_MANAGER = "ges"
|
TEST_MANAGER = "ges"
|
||||||
|
|
||||||
|
|
||||||
def setup_tests(test_manager, options):
|
def setup_tests(test_manager, options):
|
||||||
assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "defaults"))
|
assets_dir = os.path.abspath(os.path.join(
|
||||||
|
os.path.dirname(__file__), "..", "medias", "defaults"))
|
||||||
if options.sync:
|
if options.sync:
|
||||||
|
if not utils.USING_SUBPROJECT:
|
||||||
if not update_assets(options, assets_dir):
|
if not update_assets(options, assets_dir):
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
print("Syncing gst-integration-testsuites media files")
|
||||||
|
subprocess.check_call(['git', 'submodule', 'update', '--init'],
|
||||||
|
cwd=utils.DEFAULT_GST_QA_ASSETS)
|
||||||
|
subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
|
||||||
|
cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
|
||||||
options.add_paths(os.path.abspath(os.path.join(os.path.dirname(__file__),
|
options.add_paths(os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||||
"..", "medias", "defaults")))
|
"..", "medias", "defaults")))
|
||||||
projects_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "ges",
|
projects_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "ges",
|
||||||
|
|
|
@ -23,9 +23,12 @@ The GstValidate default testsuite
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
import pathlib
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from testsuiteutils import update_assets
|
from testsuiteutils import update_assets
|
||||||
|
from launcher import utils
|
||||||
from launcher.baseclasses import MediaFormatCombination
|
from launcher.baseclasses import MediaFormatCombination
|
||||||
from launcher.apps.gstvalidate import GstValidateSimpleTestsGenerator
|
from launcher.apps.gstvalidate import GstValidateSimpleTestsGenerator
|
||||||
from validate_known_issues import KNOWN_ISSUES
|
from validate_known_issues import KNOWN_ISSUES
|
||||||
|
@ -98,8 +101,15 @@ def setup_tests(test_manager, options):
|
||||||
|
|
||||||
assets_dir = os.path.realpath(os.path.join(testsuite_dir, os.path.pardir, "medias", "defaults"))
|
assets_dir = os.path.realpath(os.path.join(testsuite_dir, os.path.pardir, "medias", "defaults"))
|
||||||
if options.sync:
|
if options.sync:
|
||||||
|
if not utils.USING_SUBPROJECT:
|
||||||
if not update_assets(options, assets_dir):
|
if not update_assets(options, assets_dir):
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
print("Syncing gst-integration-testsuites media files")
|
||||||
|
subprocess.check_call(['git', 'submodule', 'update', '--init'],
|
||||||
|
cwd=utils.DEFAULT_GST_QA_ASSETS)
|
||||||
|
subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
|
||||||
|
cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
|
||||||
|
|
||||||
options.add_paths(assets_dir)
|
options.add_paths(assets_dir)
|
||||||
options.set_http_server_dir(media_dir)
|
options.set_http_server_dir(media_dir)
|
||||||
|
|
Loading…
Reference in a new issue