Commit Graph

18 Commits

Author SHA1 Message Date
Jeff Hammel
d765443550 Bug 800110 - Mirror mozbase -> m-c for bug 800097 @ da60c88b8c ;r=ahal,r=wlach 2012-10-12 10:24:35 -07:00
Jeff Hammel
a42ab51c5b Bug 799605 - Mirror mozbase -> m-c for bug 799288 and bug 799507 @ https://github.com/mozilla/mozbase/commit/ 36a2f63be33af799a54d7f1511dc922730b10b22 ; r=wlach 2012-10-10 09:27:06 -07:00
William Lachance
c5f092dab4 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
8debe5cabb Bug 797144 - mirror mozbase -> m-c for bug 796863 @ db7f115a9e;r=wlach 2012-10-03 09:13:21 -07:00
Jeff Hammel
1a43e8a377 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
d0c2b8f569 Bug 792084 - add shellCheckOutput command to devicemanager, r=wlach 2012-09-26 12:32:02 -04:00
Ed Morley
4ebb07022f 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
7a40628ff5 Bug 791716 - mirror mozbase -> m-c for week of Sept 17, 2012;r=wlach 2012-09-17 15:13:45 -07:00
Jeff Hammel
2fb3ca19f0 Bug 790018 - bump version of manifestdestiny and mirror to m-c;r=mcote 2012-09-11 19:46:39 -07:00
Mark Cote
de0a808cbe Bug 789496 - DeviceManagerSUT: always consume prompt after receiving agent warning. r=wlach 2012-09-10 11:33:11 -04:00
Mihnea Dobrescu-Balaur
da52969f34 Bug 785797 - adapt test_info to the current implemented functionality 2012-09-10 11:23:45 -04:00
Jeff Hammel
f4f949ab6d Bug 789328 - bump mozprocess and mozrunner (again) and release to pypi 2012-09-10 11:13:04 -04:00
William Lachance
cca13f1816 Bug 723107 - Re-add mozdevice to testing/mozbase, remove duplicate files in build/mobile;r=jmaher 2012-09-07 16:00:31 -04:00
William Lachance
6ecdfebf48 Bug 722429 - Should not mirror mozbase/mozdevice into m-c r=ctalbert 2012-02-08 11:07:19 -08:00
Christian Holler (:decoder)
3e0ed5e04d Bug 720806 - Improve DeviceManagerADB actions when device is not rooted. r=gbrown 2012-02-01 10:15:37 -05:00
Kartikaya Gupta
67b5a8d4fe 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
Andrew Halberstadt
ee2dd7102f 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
c17f88643d Bug 706844 - Create a make target for peptest. r=jmaher 2011-12-06 09:26:24 -05:00