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

42 Коммитов

Автор SHA1 Сообщение Дата
Francesco Pischedda f45ed99748 Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal
added testing/mozbase to tools/lint/flake8.lint
fixed a first batch of PEP8 errors/warnings

at first the commad autopep8 -i --max-line-length 99 -r -j 8 .
has been used to fix simpler problems, run from testing/mozbase

some of the issues can not easily fixed :
- undefined 'names' in code for example isLinux - isLinux and isBsd "fixed" with # noqa
- undefined 'message' resolved with return fmt.format(...
- undefined 'structured' resolved replacing those with mozlog
- long comments - some remaining - addressed with # noqa
- package level import everything - addressed with # flake8: noqa

restored testing/mozbase/mozdevice/mozdevice/Zeroconf.py
fixed issues reported on mozreview
fixed ')' in testing/mozbase/mozprocess/mozprocess/qijo.py imports
finally fixed multiline string at testing/mozbase/manifestparser/tests/test_manifestparser.py:114
^^^ and again, but now with ./mach python-test --path-only testing/mozbase/manifestparser/tests/test_manifestparser.py passing
fixed testing/mozbase/manifestparser/tests/test_convert_directory.py assert

fixed this error:
10:15:21     INFO -      return lambda line: stack_fixer_module.fixSymbols(line)
10:15:21     INFO -  TypeError: fixSymbols() takes exactly 2 arguments (1 given)

fixed two spaces lint error even of #  noqa comments
restored assignement to lambda with #  noqa to silence the lint error
global noqa for testing/mozbase/manifestparser/tests/test_filters.py
stupid is/is not error...

MozReview-Commit-ID: 1FpJF54GqIi

--HG--
extra : rebase_source : 3cf0277fb36a296e3506aeacc2ff05e1b03f9eac
2016-09-30 16:08:37 +02:00
Dave Hunt 8250726a9f Bug 1218373 - [mozversion] Fix reference to mozlog to restore command line interface. r=ahalberstadt 2015-10-26 06:13:00 +01:00
Julien Pagès 5bfd2646e1 Bug 1191197 - [mozversion] bump mozversion version to 1.4 and release to pypi. r=whimboo 2015-08-05 01:39:00 +02:00
Julien Pagès 079030035a Bug 1189847 - [mozversion] mozversion requires mozdevice, it shoudn't. r=dhunt
This make the mozdevice dependency of mozversion optional.

--HG--
extra : rebase_source : 40be17f1b8a36055b01b93c3f8087e8f9fa23fbb
2015-08-03 06:32:00 +02:00
Andrew Halberstadt 4f232ef5f5 Bug 1014760 - Version bump mozbase modules that depend on mozlog 3.0, r=me
--HG--
extra : commitid : L7a2lDztYH4
extra : rebase_source : 6178d707787cfa11a806ea8369789092b22a5d4f
2015-07-17 10:06:59 -04:00
Andrew Halberstadt 2be5ff0c10 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.

--HG--
rename : testing/mozbase/docs/mozlog_structured.rst => testing/mozbase/docs/mozlog.rst
rename : testing/mozbase/mozlog/mozlog/structured/commandline.py => testing/mozbase/mozlog/mozlog/commandline.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/__init__.py => testing/mozbase/mozlog/mozlog/formatters/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/base.py => testing/mozbase/mozlog/mozlog/formatters/base.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/errorsummary.py => testing/mozbase/mozlog/mozlog/formatters/errorsummary.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/__init__.py => testing/mozbase/mozlog/mozlog/formatters/html/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/html.py => testing/mozbase/mozlog/mozlog/formatters/html/html.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/main.js => testing/mozbase/mozlog/mozlog/formatters/html/main.js
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/style.css => testing/mozbase/mozlog/mozlog/formatters/html/style.css
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/xmlgen.py => testing/mozbase/mozlog/mozlog/formatters/html/xmlgen.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/machformatter.py => testing/mozbase/mozlog/mozlog/formatters/machformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/tbplformatter.py => testing/mozbase/mozlog/mozlog/formatters/tbplformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/unittest.py => testing/mozbase/mozlog/mozlog/formatters/unittest.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/xunit.py => testing/mozbase/mozlog/mozlog/formatters/xunit.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/__init__.py => testing/mozbase/mozlog/mozlog/handlers/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/base.py => testing/mozbase/mozlog/mozlog/handlers/base.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/bufferhandler.py => testing/mozbase/mozlog/mozlog/handlers/bufferhandler.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/statushandler.py => testing/mozbase/mozlog/mozlog/handlers/statushandler.py
rename : testing/mozbase/mozlog/mozlog/structured/logtypes.py => testing/mozbase/mozlog/mozlog/logtypes.py
rename : testing/mozbase/mozlog/mozlog/structured/reader.py => testing/mozbase/mozlog/mozlog/reader.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/__init__.py => testing/mozbase/mozlog/mozlog/scripts/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/format.py => testing/mozbase/mozlog/mozlog/scripts/format.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/logmerge.py => testing/mozbase/mozlog/mozlog/scripts/logmerge.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/unstable.py => testing/mozbase/mozlog/mozlog/scripts/unstable.py
rename : testing/mozbase/mozlog/mozlog/structured/stdadapter.py => testing/mozbase/mozlog/mozlog/stdadapter.py
rename : testing/mozbase/mozlog/mozlog/structured/structuredlog.py => testing/mozbase/mozlog/mozlog/structuredlog.py
rename : testing/mozbase/mozlog/mozlog/logger.py => testing/mozbase/mozlog/mozlog/unstructured/logger.py
rename : testing/mozbase/mozlog/mozlog/loggingmixin.py => testing/mozbase/mozlog/mozlog/unstructured/loggingmixin.py
rename : testing/mozbase/mozlog/mozlog/loglistener.py => testing/mozbase/mozlog/mozlog/unstructured/loglistener.py
extra : commitid : 3JWk75JY4N0
extra : rebase_source : 229bad7a7bf8ead013ce62d128c0896a75cad393
2015-07-16 10:38:40 -04:00
Julien Pagès 3b79b20373 Bug 1139407 - [mozversion] Remove non-text formatters from command line log options. r=dhunt
--HG--
extra : rebase_source : db4f410d9b6fcd5f487375a69f6091e31eb1b3f2
2015-04-11 00:26:00 +02:00
William Lachance 0e7ac25667 Bug 1132716 - Release mozversion 1.2. r=davehunt
CLOSED TREE
2015-02-12 18:09:53 -05:00
Julien Pagès 9fcecfd6ac Bug 1132415 - [mozversion] Expose the package name for local fennec APK file. r=wlach 2015-02-12 04:36:00 +01:00
Dave Hunt c2507c0921 Bug 1105995 - [mozversion] Bump version to 1.1. r=wlachance 2014-12-02 05:31:07 -08:00
Dave Hunt bd758ab7fa Bug 1102140 - [mozversion] Support the ADB server running on an alternate host/port. r=wlachance 2014-11-28 09:59:23 +00:00
Henrik Skupin eb5ff20f60 Bug 1088112 - [mozversion] Bump version to 1.0 and release to pypi. r=dhunt DONTBUILD
---
 testing/mozbase/mozversion/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2014-10-24 11:19:14 +02:00
Julien Pagès 0494103ad0 Bug 1065988 - [mozversion] If platform.ini for a local application is missing, an exception should be raised; r=dhunt 2014-10-24 09:02:29 +02:00
Henrik Skupin 09c5ca365a Bug 1088060 - [mozversion] Get all application and platform data. r=dhunt
---
 testing/mozbase/mozversion/mozversion/mozversion.py | 10 +++++-----
 testing/mozbase/mozversion/tests/test_binary.py     | 11 +++++++++--
 2 files changed, 14 insertions(+), 7 deletions(-)

--HG--
extra : rebase_source : 85ab0046a4aa8c96dc32e7ff24f7cfeeee2f034b
2014-10-23 17:46:23 +02:00
Julien Pagès b56d64d309 Bug 1068956 - mozversion should throw some kind of exception if binary specified and nothing found. r=wlach 2014-10-15 03:49:00 +02:00
Julien Pagès be4de9ec45 Bug 1064731 - [mozversion] Add unit test to cover the case when binary is a symlink. r=dhunt 2014-10-14 04:00:00 -04:00
William Lachance 078f087edc Bug 1078935 - Specify mozlog >= 2.0 requirement in mozversion;r=davehunt DONTBUILD 2014-10-08 10:22:12 -07:00
William Lachance 0fac57585a Bug 1073697 - mozversion should accept binary_path without .exe extension on windows;r=davehunt 2014-09-30 11:28:38 -04:00
Dave Hunt 784c2ac8ee Bug 1073441 - [mozversion] Include base image version for Flame-KK device. r=wlachance 2014-09-30 02:10:00 +02:00
Ryan VanderMeulen 2a34d55fd7 Backed out changesets 8be8d3dd116b and 6abcab74130a (bug 1073698) for checktest failures. 2014-09-29 15:37:22 -04:00
William Lachance bd8cb95c0c Bug 1073698 - fix logic error in previous patch;r=davehunt 2014-09-29 14:55:18 -04:00
William Lachance 57cbb9dd21 Bug 1073698 - mozversion should accept binary_path without .exe extension on windows;r=davehunt 2014-09-29 14:49:49 -04:00
Dave Hunt e2430f2a8d Bug 1065340 - Update mozversion to use structured logging. r=jgraham 2014-09-15 08:31:00 +02:00
Henrik Skupin 83d6296af4 Bug 1064193 - Bump mozversion to 0.7. r=dhunt DONTBUILD 2014-09-08 12:12:01 +02:00
Henrik Skupin d41b38b4b3 Bug 1061809 - [mozversion] Update retrieval of application information due to upcoming Mac signing changes. r=dhunt
---
 testing/mozbase/mozversion/mozversion/__init__.py  |  3 +-
 testing/mozbase/mozversion/mozversion/errors.py    | 26 ++++++++++
 .../mozbase/mozversion/mozversion/mozversion.py    | 58 ++++++++++++----------
 testing/mozbase/mozversion/tests/test_binary.py    | 22 ++++++--
 testing/mozbase/mozversion/tests/test_sources.py   | 17 ++++---
 5 files changed, 90 insertions(+), 36 deletions(-)
 create mode 100644 testing/mozbase/mozversion/mozversion/errors.py
2014-09-11 17:23:05 +02:00
Henrik Skupin be5f3e0126 Backed out changeset 3368efceb99f due to test failure 2014-09-08 12:29:38 +02:00
Henrik Skupin e60530ac05 Bug 1061809 - [mozversion] Update retrieval of application information due to upcoming Mac signing changes. r=wlach 2014-09-05 17:30:59 +02:00
Dave Hunt 982f59f883 Bug 1032777 - Include base image version for Flame device. r=wlachance 2014-09-03 06:20:00 -04:00
William Lachance 5ede85c459 Bug 1016467 - Add mozversion unit test that was forgotten earlier;r=ahal 2014-08-19 15:20:32 -04:00
Dave Hunt 7c95173e9a Bug 1040069 - Return None for the gaia commit if it can't be found. r=ahalberstadt 2014-07-21 02:57:00 +02:00
Dave Hunt ecc5558981 Bug 1024441 - Bump mozversion to 0.6. r=wlach 2014-06-12 04:29:00 -04:00
Dave Hunt 99fe918e99 Bug 1023915 - [mozversion] Support targeting device by serial identifier. r=wlach 2014-06-11 08:44:00 -04:00
William Lachance e2af53a393 Bug 1019211 - Bump mozversion to 0.5. r=ahal 2014-06-02 16:53:49 -04:00
William Lachance 4e494d0b99 Bug 1016467 - Allow mozversion to support getting version info out of a fennec .apk. r=davehunt 2014-05-29 14:57:52 -04:00
Cosmin Malutan 59a48da011 Bug 1000017 - Bump mozversion to version 0.4. r=hskupin DONTBUILD 2014-04-23 23:23:51 +02:00
Cosmin Malutan fa142a7584 Bug 992139 - [mozversion] Enhance mozversion to return application_display_name. r=hskupin 2014-04-23 10:16:02 +02:00
Dave Hunt 99e69c232c Bug 993700 - Bump mozversion version to 0.3. r=jgriffin 2014-04-08 16:02:56 -07:00
Dave Hunt bfdc4f11c4 Bug 991507 - Fall back to the system unzip command if Python is unable to read the zip file. r=jgriffin 2014-04-08 15:23:29 -07:00
Andrei Eftimie 2f3300101e Bug 972872 - [mozversion] Allow to retrieve the application code name (Nightly / Aurora / Firefox). r=hskupin
--HG--
extra : rebase_source : 80168af1cba0bb2b5cd24c242fa56d180d923996
2014-02-21 13:26:48 +01:00
Andrew Halberstadt 2162ac0779 Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-19 16:42:01 -05:00
Wes Kocher 572d78adfd Backed out changeset a7f8c25c07ac (bug 949600) for breaking clobber due to new update_permissions code, regardless of whether this is a CLOSED TREE. 2014-02-18 16:12:34 -08:00
Andrew Halberstadt 354168bb48 Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-18 09:25:58 -05:00