gecko/testing
William Lachance 382c927895 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
..
crashtest Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz. 2012-07-16 16:52:59 +02:00
extensions/community Bug 759095 - remove stray references to tri-license. 2012-10-02 12:52:06 +01:00
jetpack Update Jetpack tests used in Firefox to pick up the fix for bug 793052. 2012-09-24 09:57:34 -07:00
marionette Bug 797154: A new virtualenv frontend for B2G mochitests. r=jgriffin 2012-10-03 12:50:07 -05:00
mochitest Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher 2012-10-04 11:28:07 -04:00
mozbase Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher 2012-10-04 11:28:07 -04:00
peptest Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
release Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
specialpowers Bug 794280 - Improve comment for SpecialPowers.pushPrefEnv(). r=ted DONTBUILD 2012-10-02 12:04:24 -04:00
talos Bug 793746 - point to new talos.zip for dzclient;r=jmaher 2012-09-25 09:10:16 -07:00
tests Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
tinderbox-standalone-tests Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
tools Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
tps Bug 771554 - Update mozbase deps to match in-tree versions, r=jgriffin, DONTBUILD because NPOTB 2012-08-06 17:44:51 -06:00
xpcshell Bug 795544 - Test updates. r=bz 2012-10-01 21:49:12 +09:00
machine-configuration.json Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
README.txt
testsuite-targets.mk Bug 685903 - Remove firebug automation from testing/firebug. r=jhammel 2012-09-26 11:07:07 -04:00

Common testing tools for mozilla codebase projects, test suite definitions
for automated test runs, tests that don't fit anywhere else, and other fun
stuff