gecko/build
William Lachance 54d781abf7 Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher
It turns out that relying on the user to check return codes for every
command was non-intuitive and resulted in many hard to trace bugs.
Now most functinos just return "None", and raise a DMError when there's an
exception. The exception to this are functions like dirExists, which now return
booleans, and throw exceptions on error. This is a fairly major refactor,
and also involved the following internal changes:

* Removed FileError and AgentError exceptions, replaced with DMError
  (having to manage three different types of exceptions was confusing,
  all the more so when we're raising them)
* Docstrings updated to remove references to return values where no
  longer relevant
* pushFile no longer will create a directory to accomodate the file
  if it doesn't exist (this makes it consistent with devicemanagerADB)
* dmSUT we validate the file, but assume that we get something back
  from the agent, instead of falling back to manual validation in the
  case that we didn't
* isDir and dirExists had the same intention, but different
  implementations for dmSUT. Replaced the dmSUT impl of getDirectory
  with that of isDir's (which was much simpler). Removed
  isDir from devicemanager.py, since it wasn't used externally
* killProcess modified to check for process existence before running
  (since the actual internal kill command will throw an exception
  if the process doesn't exist)

In addition to all this, more unit tests have been added to test these
changes for devicemanagerSUT.
2012-10-04 11:28:07 -04:00
..
autoconf Bug 795499 - Export ANDROID_CPU_ARCH via AC_SUBST. r=glandium 2012-09-29 00:49:24 -07:00
macosx Bug 762908 - Rip enablePrivilege out of spidermonkey tests. r=ted 2012-09-20 09:06:50 -04:00
mobile Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher 2012-10-04 11:28:07 -04:00
os2 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
package Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
pgo Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8 2012-09-24 14:46:28 +02:00
pymake Bug 794966 - Treat environment variables as = assignments instead of := in pymake. r=ted 2012-10-02 14:18:00 +02:00
stlport Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
tests Bug 742795 - Autogenerate autoconf.mk. r=ted 2012-08-06 15:19:50 +02:00
unix Bug 793319 - Backport patches to make the output order deterministic. r=rail. 2012-10-01 10:40:55 -04:00
valgrind Bug 696305 - Tweak suppression file for bug 793533. DONTBUILD 2012-10-03 13:36:41 -07:00
virtualenv Bug 793051 - Add pymake to virtualenv; r=glandium 2012-09-24 13:18:25 -07:00
win32 Bug 779922 - Export Windows-style paths in the in-tree mozconfig.vs2010 when building under Pymake. r=ted 2012-08-07 02:37:11 +05:30
win64 Bug 787806 - Fix LD for Pymake Win64 builds. pending-r=ted 2012-09-03 03:48:16 +05:30
__init__.py
appini_header.py Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
application.ini Bug 767839 - Avoid preprocessing application.ini.in twice. r=khuey 2012-08-07 16:53:17 +02:00
automation-build.mk Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
automation.py.in Bug 795136 - 3/2 - Disabling tests until bug 795711 is fixed. r=me 2012-09-30 16:07:51 +01:00
automationutils.py Bug 789275 - Better error message when trying to process a crash report without symbols. r=wlach. DONTBUILD 2012-09-15 11:33:02 -07:00
binary-location.mk Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
bloatcycle.html Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8 2012-09-24 14:46:28 +02:00
buildconfig.py Bug 785871 - Make importing config.status easier. r=ted,r=gps 2012-09-20 09:52:12 +02:00
checksums.py Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
cl.py Bug 785622 - Only include .pp files corresponding to files we do build. r=khuey 2012-08-29 08:55:58 +02:00
ConfigStatus.py Bug 742795 - Autogenerate autoconf.mk. r=ted 2012-08-06 15:19:50 +02:00
genrc.sh Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
leaktest.py.in b=793079 set leaktest timeout to half buildbot timeout r=ted 2012-09-25 16:19:25 +12:00
link.py bug 661908 - work around stupid Python 2.5 bug. r=bustage 2012-05-25 14:02:54 -04:00
Makefile.in Bug 793584 - Update Makefile to look out for cross-architecture.sup as well, rs=njn DONTBUILD 2012-09-26 01:07:13 -07:00
manifestparser.py Bug 778259 - Fix fallback relpath implementation for python 2.5- in manifestparser.py. r=jhammel 2012-08-04 08:54:59 +02:00
mozconfig.common Bug 738612 - Add mozconfig "override" files to be included after everything else, for overriding previously set options. r=ted 2012-09-05 12:10:21 -07:00
mozconfig.common.override Bug 738612 - Add mozconfig "override" files to be included after everything else, for overriding previously set options. r=ted 2012-09-05 12:10:21 -07:00
mozconfig.vs2010-common Bug 779922 - Export Windows-style paths in the in-tree mozconfig.vs2010 when building under Pymake. r=ted 2012-08-07 02:37:11 +05:30
msys-perl-wrapper Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
profile_pageloader.html Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
profile_pageloader.pl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
unify-test.c Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
unifytest.class
unifytest.java Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
update-settings.ini Bug 767839 Don't preprocess update-settings.ini twice r=khuey 2012-07-03 08:33:54 +01:00
upload.py Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
xpccheck.py Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00