Commit Graph
17 Commits
Author SHA1 Message Date
Ganti Sai Sarath Chandra 6bda4ec56b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn
2017-08-19 04:19:06 +05:30
Andrew Halberstadt c0ddc1070d Bug 1003417 - Use 'ip addr show' instead of 'ifconfig' for moznetwork tests, r=ted
The taskcluster docker image for source-check tasks does not have 'ifconfig' installed. We
could add this package, but ifconfig is more or less deprecated in favour of 'ip addr show'.
Although the formats of both commands are different, because the test pulls ip addresses out
of the output with regexes, the only change that is needed to make sure the tests still pass
is to change the command.

MozReview-Commit-ID: 758Qb6KSHzS
2017-01-06 11:19:19 -05:00
Andrew Halberstadt 64e33c7c26 Bug 1003417 - Add a 'mozbase' subsuite to python unittests on linux, r=ted
The subsuite is added conditionally because we only have the capability of
running source-check tasks on linux at the moment. Once taskcluster support
for windows and mac has matured a bit and the taskcluster configs support
source-check there, we should apply the subuite unconditionally.

MozReview-Commit-ID: Kk9Irz3fn14
2016-11-16 16:43:42 -05:00
Andrew Halberstadt e7efd21c97 Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6
2016-11-17 16:36:18 -05:00
Francesco Pischedda 46c0d4af68 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
2016-09-30 16:08:37 +02:00
Andrew Halberstadt 52e38702e3 Bug 1014760 - Version bump mozbase modules that depend on mozlog 3.0, r=me 2015-07-17 10:06:59 -04:00
Andrew Halberstadt 5c1241cd79 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.
2015-07-16 10:38:40 -04:00
Henrik Skupin b9f27e482a Bug 1176677 - [moznetwork] ImportError: "cannot import name structured", and release version 0.26. r=davehunt 2015-06-23 17:23:18 +02:00
Dave Hunt b8afb66f8c Bug 1175101 - [moznetwork] Bump version number to 0.25. r=wlachance 2015-06-16 05:39:00 -04:00
Dave Hunt b38be53c0a Bug 1163992 - [moznetwork] When multiple IPs are found on Windows pick the first one. r=wlachance 2015-05-14 09:48:19 +01:00
Dave Hunt 2d08cf3c18 Bug 1160094 - [moznetwork] Attempt to pick most suitable IP when multiple are associated with the hostname. r=wlach 2015-04-30 02:52:00 +02:00
Dave Hunt 59f169fbcd Bug 1160090 - [moznetwork] Add structured logging. r=wlach 2015-04-30 02:38:00 -04:00
Dave Hunt ad41db9bb4 Bug 1160087 - [moznetwork] Add command line interface. r=wlach 2015-04-30 02:33:00 -04:00
Julien Pagès 2304855e64 Bug 1003405 - Mozbase unit test moznetwork/tests/test.py failures on linux slaves when run from test package. r=dminor 2014-05-16 06:45:00 -04:00
Jonathan Griffin cda0d983a5 Bug 917750 - mirror several mozbase packages, r=ahal 2013-10-22 15:42:05 -07:00
Andrew Halberstadt 9f7260fd65 Bug 895940 - Mirror mozbase to m-c, r=jhammel 2013-07-25 16:27:53 -04:00
Andrew Halberstadt 103f5fe53e Bug 876761 - Mirror moznetwork and mozcrash to m-c, r=jhammel 2013-05-30 10:13:29 -04:00