Commit b0aa7826 authored by Thibault Saunier's avatar Thibault Saunier 🌵

testsuites: Error out if the assets could not be synced

https://bugzilla.gnome.org/show_bug.cgi?id=747830
parent f1aae74b
{
"phabricator.uri" : "http://phabricator.freedesktop.org/"
}
......@@ -37,7 +37,9 @@ def setup_tests(test_manager, options):
assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "defaults"))
if options.sync:
update_assets(assets_dir)
if not update_assets(assets_dir):
return False
options.add_paths(assets_dir)
options.set_http_server_dir(os.path.abspath(os.path.join(os.path.dirname(__file__),
"..", "medias")))
......
......@@ -42,7 +42,8 @@ def setup_tests(test_manager, options):
assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "big"))
if options.sync:
update_assets(assets_dir)
if not update_assets(assets_dir):
return False
options.add_paths(assets_dir)
test_manager.set_default_blacklist(BLACKLIST)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment