Bug 1699241 - support appleSilicon as a keyword in reftest manifests r=ahal

support appleSilicon as a keyword in reftest manifests

Differential Revision: https://phabricator.services.mozilla.com/D108837
This commit is contained in:
Joel Maher 2021-03-17 19:50:23 +00:00
Родитель 1c9b8bb425
Коммит 9547663454
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -576,6 +576,8 @@ function BuildConditionSandbox(aURL) {
var osxmatch = /Mac OS X (\d+).(\d+)$/.exec(hh.oscpu);
sandbox.OSX = osxmatch ? parseInt(osxmatch[1]) * 100 + parseInt(osxmatch[2]) : undefined;
// config specific prefs
sandbox.appleSilicon = prefs.getBoolPref("sandbox.apple_silicon", false);
// Plugins are no longer supported. Don't try to use TestPlugin.
sandbox.haveTestPlugin = false;

Просмотреть файл

@ -464,6 +464,9 @@ class RefTest(object):
prefs["widget.disable-dark-scrollbar"] = True
prefs["reftest.isCoverageBuild"] = mozinfo.info.get("ccov", False)
# config specific flags
prefs["sandbox.apple_silicon"] = mozinfo.info.get("apple_silicon", False)
# Set tests to run or manifests to parse.
if tests:
testlist = os.path.join(profile.profile, "reftests.json")