Changes

Jump to: navigation, search

Auto-tools/Projects/Marionette update tests

1,051 bytes added, 21:59, 7 August 2015
m
Add piece of code which allows multiple platforms
#* You have to hard-link since archiver [http://mxr.mozilla.org/build/source/tools/buildfarm/utils/archiver_client.py#175 does not allow symlinks on Windows]
# Just before calling [http://hg.mozilla.org/mozilla-central/file/default/testing/mozharness/scripts/firefox_ui_updates.py#l104 super()] create a new sys.argv values [1]
# You can either test all 64-bit jobs or the 32-bit jobs with this logic [2]
# after that you can push to try with this commit message (try: -b o -p android-x86 -u none -t none)
#* The try message should contain at least one platform that would be triggered on buildbot, otherwise, we want be able to use BuildApi since the revision won't exist unless there is at least one platform to schedule
command = 'scripts/scripts/firefox_ui_updates.py --cfg generic_releng_config.py --cfg generic_releng_linux64.py --firefox-ui-branch mozilla-beta --update-verify-config mozBeta-firefox-linux64.cfg --tools-tag FIREFOX_40_0b6_RELEASE_RUNTIME --total-chunks 6 --this-chunk 1 --build-number 1'
sys.argv = command.split(' ')
 
[2]
from mozharness.base.script import platform_name
ENABLE_BITS='64'
# Ignore that for Linux 32 the key is linux64 and Windows 64-bit is win32
PLATFORM_FLAGS = {
'32': {
'linux':
'--cfg releng_infra_configs/linux.py ' + \
'--update-verify-config mozBeta-firefox-linux.cfg',
'linux64': '--help',
'win32':
'--cfg releng_infra_configs/win32.py ' + \
'--update-verify-config mozBeta-firefox-win32.cfg',
},
'64': {
'linux': '--help',
'linux64':
'--cfg releng_infra_configs/linux64.py ' + \
'--update-verify-config mozBeta-firefox-linux64.cfg',
'macosx':
'--cfg releng_infra_configs/macosx64.py ' + \
'--update-verify-config mozBeta-firefox-mac64.cfg'
,
'win32':
'--cfg releng_infra_configs/win64.py ' + \
'--update-verify-config mozBeta-firefox-win64.cfg'
,
},
}
== Selecting the right platform and the right command ==
Confirm
3,990
edits

Navigation menu