Граф коммитов

70 Коммитов

Автор SHA1 Сообщение Дата
Nick Alexander 97786c5695 Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!

--HG--
extra : rebase_source : a5ab08222110a20291aebe70ef1fda0d340dbe7d
extra : source : e91ac9a35f86928fcd519911476ee7d68d06f921
2015-05-29 17:18:07 -07:00
Carsten "Tomcat" Book a723ed3ad7 Backed out changeset e91ac9a35f86 (bug 1169476) for android rc2 crashes 2015-06-01 09:38:42 +02:00
Nick Alexander f242708503 Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!

--HG--
extra : rebase_source : 15e9e8d5c311312e2eb317936e5d154237c1f9a3
extra : histedit_source : 050ac958ae8580f45e5011a0d353bf13e65d5ff3
2015-05-25 14:27:21 -07:00
Geoff Brown 51f4882b20 Bug 1156425 - Allow Android test jobs to run for up to 75 minutes; r=ryanvm 2015-05-04 10:32:46 -06:00
Geoff Brown baa77da218 Bug 1160393 - Enable webrtc logging for android; r=bwc 2015-05-01 16:34:36 -06:00
Geoff Brown 7d7b8dc617 Bug 1156422 - Improve robustness of logcat collection in checkForCrashes; r=bc
--HG--
extra : rebase_source : ab02b6f2c7007a42c4205ff5f1d41db4da7b134a
2015-04-21 16:44:42 -06:00
Nicholas Nethercote 98688c1a41 Bug 1100851 - Tweak DMD to account for the fact that $DMD can now be undefined. r=glandium.
Now that defining $DMD is no longer necessary to run DMD, this patch does the
following.
- Removes all the places where we set DMD=1 (test harnesses, etc.)
- Still handles DMD=1, for backwards compatibility.
- Prints "$DMD is undefined" at DMD start-up if appropriate.
- Writes a |null| value for |dmdEnvVar| in the JSON if $DMD is undefined. Bumps
  the DMD output version number accordingly.
- Changes a bunch of the test files accordingly, including changing the mode of
  script-ignore-alloc-fns.json in order to test a case where $DMD is undefined.

--HG--
extra : rebase_source : eb1ef5722410734ce6d7658465ff6f442ee4ed49
2014-11-27 21:04:46 -08:00
Chris Manchester 7a035febd4 Bug 1068429 - Log crashes with structured logging for those using structured logging.;r=ahal 2014-09-23 20:33:31 -04:00
Nils Ohlmeier [:drno] 7204b2e48f Bug 1049688 - Allow override of MOZ_DISABLE_NONLOCAL_CONNECTIONS. r=froydnj 2014-09-22 09:48:00 -04:00
Nick Alexander dd621202b1 Bug 874729 - Part 1: Swallow IOErrors when pulling ANR traces. r=jmaher
On my local testing devices, |adb pull| complains about not being able
to read /data/anr/traces.txt but the command succeeds.  The subsequent
local file read produces an IOError.  This ignores that exception.
2014-09-08 16:23:10 -07:00
Geoff Brown 8c277a965f Bug 1042097 - Upload Android tombstones to blobber; r=dminor 2014-08-11 11:55:28 -06:00
Ahmed Kachkach af98d35b3f Bug 1034267 - Structured Logging for robocop. r=gbrown 2014-07-29 14:11:00 +02:00
Ahmed Kachkach 4b03d2c025 Bug 886570 - Initial integration of structured logs in mochitest; r=ahal,Ms2ger 2014-07-17 09:02:00 +02:00
Carsten "Tomcat" Book ce57787693 Backed out changeset cf85693280c7 (bug 886570) frequent mochitest-3 errors on windows 2014-07-11 14:15:29 +02:00
Ahmed Kachkach 50db9012f6 Bug 886570 - Initial integration of structured logs in mochitest. r=ahal,Ms2ger 2014-07-10 13:33:00 +02:00
Geoff Brown b4e0468ee6 Bug 1027802 - Try to get ANR report and stack trace when Fennec hangs; r=jmaher 2014-07-03 22:11:41 -06:00
Andrew McCreight a7fbd0d3c2 Bug 988041 - Enable LeakSanitizer for Mochitests. r=jmaher 2014-06-20 09:08:30 -07:00
Nathan Froyd b6301f2928 Bug 995417 - part 2 - testing infrastructure changes to set MOZ_DISABLE_NONLOCAL_CONNECTIONS; r=jmaher 2014-06-17 10:49:57 -04:00
Jim Chen 123716de41 Bug 999071 - Empty ANR file during testing instead of deleting it; r=gbrown 2014-04-28 22:20:52 -04:00
Wes Kocher d477a31fd8 Backed out 3 changesets (bug 999071) for Android rc1 failures
Backed out changeset ddf970be0abd (bug 999071)
Backed out changeset 8d2738b22275 (bug 999071)
Backed out changeset b82a8c50aa90 (bug 999071)
2014-04-24 18:12:46 -07:00
Jim Chen 3d4010b681 Bug 999071 - Empty ANR file during testing instead of deleting it; r=gbrown 2014-04-24 17:49:02 -04:00
William Lachance d407cd825b Bug 996862 - Remove use of mozdevice's networktools. r=ahal 2014-04-21 11:03:51 -04:00
Geoff Brown 09985b3f13 Bug 960265 - Add no-output timeouts for Android tests; r=jmaher 2014-02-02 08:11:23 -07:00
Geoff Brown 24a1d2d443 Bug 963838 - Pass correct app name to automation in Android tests; r=jmaher 2014-02-02 08:11:22 -07:00
Nathan Froyd 0f8ca584d8 Bug 938289 - part 1 - add automation support for adding DMD environment variables; r=jmaher 2013-11-13 14:47:41 -05:00
Ted Mielczarek 0cf4101913 bug 914925 - fix --debugger for mochitest on OS X. r=jmaher 2013-09-16 14:44:25 -04:00
Geoff Brown 162d081060 Bug 892118 - Suppress annoying Android x86 emu logcat message; r=jmaher 2013-11-17 10:23:15 -07:00
Ed Morley f98bbcdd4c Bug 923513 - Make remoteautomation.py use the new mozcrash check_for_java_exception(); r=jmaher 2013-10-16 16:18:29 +01:00
Dan Minor (dminor@mozilla.com) 43e5e1cb99 Bug 881897: Reduce frequency of polling in remoteautomation.py; r=jmaher 2013-06-28 07:49:53 -04:00
Ed Morley e50a23d3d6 Bug 872507 - Tweak logcat java-exception regex to strip more whitespace; r=jmaher 2013-05-17 12:42:02 +01:00
Geoff Brown 79a1c821af Bug 872244 - Dump ANR stack traces after Android tests; r=jmaher 2013-05-16 14:32:52 -06:00
Ed Morley 520d38725d Bug 872116 - Output a TBPL compatible message for Android logcat "FATAL EXCEPTION" failures; r=jmaher 2013-05-14 19:08:47 +01:00
Geoff Brown f0b04ba321 Bug 865944 - Use top activity instead of process to check launch success; r=jmaher 2013-05-03 11:37:59 -06:00
Nick Alexander 1009e11bab Bug 863106 - Check for minidumps directory only when crash reporter is enabled. r=jmaher 2013-04-19 15:31:16 -07:00
Joel Maher acbe7e05ea Bug 827446 - update mochitest, reftest, xpcshell to use mozcrash. r=jhammel 2013-03-21 09:19:34 -04:00
Ryan VanderMeulen 35ddb95cc4 Backed out changeset 1c19d2a03d90 (bug 827446) for packaging bustage on a CLOSED TREE. 2013-03-13 09:22:00 -04:00
Joel Maher 705f3765df Bug 827446 - update mochitest, reftest, xpcshell to use mozcrash. r=jhammel 2013-03-13 07:38:00 -04:00
Geoff Brown f56a8ab5b8 Bug 844797 - Avoid UnboundLocalError on dumpDir in checkForCrashes; r=edmorley 2013-02-26 07:19:58 -07:00
Geoff Brown 8f0f5d7559 Bug 823452: Check logcat for Java exceptions; r=jmaher 2013-02-13 11:42:15 -07:00
Ed Morley eea19fd01b Bug 813577 - Use try/finally in checkForCrashes() to ensure minidump temp directories do not linger; r=gps 2013-02-08 16:32:07 +00:00
Geoff Brown 26b1b74298 Bug 809753 - Avoid python exception when maxTime is None; r=edmorley, DONTBUILD 2012-11-28 13:43:58 -07:00
Ed Morley 4ad312620d Bug 808410 - Callers of checkForCrashes should use its return value to ensure shutdown crashes actually make the run fail; r=jmaher f=gps 2012-11-20 15:24:28 +00:00
William Lachance 0bd9276583 Bug 805116 - Print more of the logcat in mobile tests;r=gbrown 2012-11-12 13:57:13 -08:00
Ed Morley 28935a84bf Bug 808419 - remoteautomation.py's waitForFinish() should print to the log when maxTime is reached; r=jmaher 2012-11-05 13:03:55 +00:00
Ed Morley 11ec75bdd6 Bug 757838 - Make remoteautomation.py set lastTestSeen so Android crashes are output with the test filename; r=jmaher 2012-11-02 18:57:50 +00:00
Ed Morley 29ee6e6f9e Bug 757838 - Misc remoteautomation.py cleanup; r=jmaher 2012-11-02 18:57:50 +00:00
William Lachance b9a0562599 Bug 756440 - Only try to download crash directory on device if it exists;r=jmaher
Under normal circumstances this should be created automatically inside the
profile directory when we first start, but this won't happen if we fail
to start properly altogether. If that's the case, we've got other problems
that will be reported as errors. Let's just print a warning so we don't
misdiagnose the problem under those circumstances.
2012-10-15 10:15:15 -04: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
Dominik Oepen 822e64b426 Bug 774293 - Fix issues in devicemanager revealed by pyflakes;r=wlach 2012-08-14 10:41:11 -04:00
Geoff Brown a6e330ccc0 Bug 779250: Make Robocop tests run faster; r=jmaher 2012-08-08 08:25:27 -06:00