Bug 906081 - (1) Support remote os version in android xpcshell manifests; r=ted

This commit is contained in:
Geoff Brown 2013-10-08 13:14:36 -06:00
parent 4c1faddf9d
commit 54032ee72e

View File

@ -13,6 +13,7 @@ from automationutils import replaceBackSlashes
import devicemanagerADB, devicemanagerSUT, devicemanager
from zipfile import ZipFile
import shutil
import mozinfo
here = os.path.dirname(os.path.abspath(__file__))
@ -542,6 +543,11 @@ def main():
print >>sys.stderr, "Error: You must specify a test filename in interactive mode!"
sys.exit(1)
# Add Android version (SDK level) to mozinfo so that manifest entries
# can be conditional on android_version.
androidVersion = dm.shellCheckOutput(['getprop', 'ro.build.version.sdk'])
mozinfo.info['android_version'] = androidVersion
xpcsh = XPCShellRemote(dm, options, args)
# we don't run concurrent tests on mobile