Commit Graph

739 Commits

Author SHA1 Message Date
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
Jeff Hammel
626816e3a2 Bug 797144 - mirror mozbase -> m-c for bug 796863 @ db7f115a9e;r=wlach 2012-10-03 09:13:21 -07:00
Jeff Hammel
9f39e486d8 Bug 795943 - Mirror mozbase -> m-c for week of Oct 1 @ 22aa0aee78;r=wlach
--HG--
extra : rebase_source : 389b6c3a2923c40167698b477e4d57b230b1a063
2012-10-01 14:00:55 -07:00
Malini Das
8b1b4bdbd7 Bug 792084 - add shellCheckOutput command to devicemanager, r=wlach 2012-09-26 12:32:02 -04:00
Ed Morley
635b92ba9f Bug 793739 - mirror mozbase to m-c for week of Sept 24, 2012 @ b12b008846;r=jhammel 2012-09-25 09:35:14 -07:00
Jeff Hammel
32c2c1da47 Bug 791716 - mirror mozbase -> m-c for week of Sept 17, 2012;r=wlach 2012-09-17 15:13:45 -07:00
Jeff Hammel
255161f9e1 bug 702832 follow up: add license header;r=wlach DONTBUILD because NPOTB
--HG--
extra : rebase_source : 054283ae7cd75772a8303358e553f5d8b78ec680
2012-09-14 14:17:32 -07:00
Jeff Hammel
8187290f06 Bug 702832 - solidify strategy to sync mozbase packages to m-c;r=wlach DONTBUILD because NPOTB 2012-09-14 14:12:35 -07:00
Jeff Hammel
23bc3306f4 Bug 790018 - bump version of manifestdestiny and mirror to m-c;r=mcote 2012-09-11 19:46:39 -07:00
Mark Cote
8ae3041609 Bug 789496 - DeviceManagerSUT: always consume prompt after receiving agent warning. r=wlach 2012-09-10 11:33:11 -04:00
Mihnea Dobrescu-Balaur
5744df9068 Bug 785797 - adapt test_info to the current implemented functionality 2012-09-10 11:23:45 -04:00
Jeff Hammel
0e05e91e98 Bug 789328 - bump mozprocess and mozrunner (again) and release to pypi 2012-09-10 11:13:04 -04:00
Jonathan Griffin
f360150288 Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 17:58:39 -07:00
Jonathan Griffin
f391e7b944 backout 69243e829931 due to OSX 10.7 bustage 2012-09-07 17:05:26 -07:00
Jonathan Griffin
d433b7553c Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 15:39:17 -07:00
William Lachance
980573bf62 Bug 723107 - Re-add mozdevice to testing/mozbase, remove duplicate files in build/mobile;r=jmaher 2012-09-07 16:00:31 -04:00
Mounir Lamouri
6e11fd8228 Bug 619236 - Set user_version in generated permissions.sqlite for tests. r=sicking 2012-08-23 11:39:41 -07:00
Mounir Lamouri
f2974f3cbd Bug 777072 - 6/7 Update the Permission Manager database to save appId/isInBrowserElement. r=sicking 2012-08-23 11:38:26 -07:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Mike Hommey
be451c22dc Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE 2012-08-04 10:38:41 +02:00
Mike Hommey
bbf2d92e8f Bug 778259 - Fix fallback relpath implementation for python 2.5- in manifestparser.py. r=jhammel 2012-08-04 08:54:59 +02:00
Mike Hommey
e79d87471e Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 08:48:56 +02:00
Andrew Halberstadt
c0c456bc49 Bug 778133 - Update mozbase in m-c for bug 776931. r=jhammel 2012-08-02 17:17:34 -04:00
Jeff Hammel
3d985ba3a7 Bug 775127 - Bump mozInstall version and release to pypi and update mozbase on mozilla central. r=ahalberstadt 2012-07-20 20:19:38 -04:00
Siddharth Agarwal
12c942114f Fix orange due to botched mozprocess update in bug 769808. 2012-07-03 12:53:23 +05:30
Siddharth Agarwal
e5bdeba46c Bug 769808 - Update mozbase on m-c to include fix for bug 769789. r=jhammel 2012-07-03 01:52:54 +05:30
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Hiroyuki Ikezoe
391b8f5545 Bug 739497 - Fix the comment of filter method for xpcshell.ini. r=jmaher 2012-03-30 11:42:15 -04:00
William Lachance
b59c7fb4b0 Bug 722429 - Should not mirror mozbase/mozdevice into m-c r=ctalbert 2012-02-08 11:07:19 -08:00
Mark Cote
7862c417ef Bug 724595 Merge mozbase changes from Dec 31 to Feb 1 r=ctalbert 2012-02-08 11:07:19 -08:00
Matthew Noorenberghe
5a46a0d983 Bug 294260 - Disable startup crash tracking in test profiles (toolkit.startup.max_resumed_crashes = -1) r=waldo,robcee
--HG--
extra : rebase_source : 6856629cc35106499f82753471ff77c2607a5e97
2012-02-03 18:31:31 -08:00
Christian Holler (:decoder)
ca2f991dc1 Bug 720806 - Improve DeviceManagerADB actions when device is not rooted. r=gbrown 2012-02-01 10:15:37 -05:00
Kartikaya Gupta
81f35d679d Bug 717408 - Remove unneeded clause in python exception handling that was causing errors on python 2.5. r=geoffbrown 2012-01-12 13:09:04 -05:00
Bobby Holley
4b6add2c77 Bug 713747 - Use UniversalXPConnect and UniversalXPConnect only in test coverage. r=bz 2011-12-30 09:35:38 -08:00
Mark Cote
7ea9aa8956 Bug 713256 - Mirror mozbase changes for working properly on buildslaves into m-c r=ctalbert 2011-12-23 12:46:37 -05:00
Andrew Halberstadt
822644cd17 Bug 711102 Ensure build environments have logging modules for peptest r=ctalbert 2011-12-15 12:58:37 -06:00
Andrew Halberstadt
9e69cb0b75 Bug 708309 - Do not use zipfile.extract in mozbase components for peptest r=jhammel a=test-only 2011-12-13 13:53:51 -06:00
Andrew Halberstadt
e5f5fd2c69 Bug 706844 - Create a make target for peptest. r=jmaher 2011-12-06 09:26:24 -05:00
Andrew Halberstadt
2899913664 Bug 703266 Mirror mozbase to mozilla-central for peptest r=jhammel 2011-11-29 11:43:16 -05:00