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

57 Коммитов

Автор SHA1 Сообщение Дата
William Lachance cf7ff16636 Bug 1471641 - Changes to support a mozinstall 2.0 release r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D15542

--HG--
extra : moz-landing-system : lando
2019-01-02 09:57:30 +00:00
William Lachance 2fd7e025ab Bug 1516659 - Remove mozprocess dependency from mozinstall's tests r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D15476

--HG--
extra : moz-landing-system : lando
2019-01-02 09:44:08 +00:00
William Lachance d9f2e01051 Bug 1471641 - Enable and fix mozinstall tests on python 3 r=davehunt
Depends on D15540

Differential Revision: https://phabricator.services.mozilla.com/D15541

--HG--
extra : moz-landing-system : lando
2019-01-02 09:54:44 +00:00
William Lachance e2956f9540 Bug 1471641 - Python 3 compatibility fixes in mozinstall r=davehunt
Depends on D15539

Differential Revision: https://phabricator.services.mozilla.com/D15540

--HG--
extra : moz-landing-system : lando
2019-01-02 09:54:09 +00:00
William Lachance af30ba4ef7 Bug 1471641 - Use subprocess check_call and check_output in mozinstall r=davehunt
We were using more primitive methods before to support python 2.4, but
that's obviously no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D15539

--HG--
extra : moz-landing-system : lando
2019-01-02 09:53:20 +00:00
Andrew Halberstadt fea1d97f08 Bug 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D14901

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:12 +00:00
Andrew Halberstadt ce87b08ac4 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

Differential Revision: https://phabricator.services.mozilla.com/D10759

--HG--
extra : moz-landing-system : lando
2018-12-05 19:20:16 +00:00
Andreea Pavel e3299fd2db Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt b03e2aa337 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

MozReview-Commit-ID: C07FANaYzf7

Depends on D10758

Differential Revision: https://phabricator.services.mozilla.com/D10759

--HG--
extra : moz-landing-system : lando
2018-11-15 00:49:45 +00:00
Dave Hunt 696d9f1858 Bug 1388016 - Run mozbase tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: LdmTHHrLZwq

--HG--
extra : rebase_source : e7f21bb73ffc1a322a10eef21b705b14a2077144
2018-06-21 06:26:17 +01:00
Dave Hunt 11afa9eaef Bug 1470122 - Bump mozinstall to 1.16.0; r=whimboo
MozReview-Commit-ID: LtxU2upM8Oo

--HG--
extra : rebase_source : 9ca85c85b220ad797a02c113c4d8e16f4d81f88d
2018-06-21 13:26:41 +01:00
Henrik Skupin 507cc07062 Bug 1455241 - [mozinstall] Detach mounted image in install() if path contains space. r=gbrown
MozReview-Commit-ID: GOhiqQUzsRL

--HG--
extra : rebase_source : 010414f025623322ca2c26b63c1399e0c0ada514
2018-04-27 14:00:20 +02:00
Henrik Skupin 8dba930c7a Bug 1455241 - [mozinstall] Convert unit tests to pytest format. r=gbrown
MozReview-Commit-ID: T7vIhDwdC

--HG--
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.dmg => testing/mozbase/mozinstall/tests/installer_stubs/firefox.dmg
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.tar.bz2 => testing/mozbase/mozinstall/tests/installer_stubs/firefox.tar.bz2
rename : testing/mozbase/mozinstall/tests/Installer-Stubs/firefox.zip => testing/mozbase/mozinstall/tests/installer_stubs/firefox.zip
rename : testing/mozbase/mozinstall/tests/test.py => testing/mozbase/mozinstall/tests/test_install.py
extra : rebase_source : ea6e6a23e844b3fd421dc9e88445126c7567ac03
2018-04-27 13:44:21 +02:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Vedant Chakravadhanula 54de7fd3de Bug 1427062 - Adding Python 3 support for mozinstall. r=wlach
MozReview-Commit-ID: I3hiQdN1u79

--HG--
extra : rebase_source : 8b406507822518c43e236b56bd24b48ce4da5f7f
2017-12-28 10:47:53 +05:30
William Lachance 7f3a4f976f Bug 1427837 - Bump mozinstall to 1.15 r=ahal
MozReview-Commit-ID: LkcqILfkVwb

--HG--
extra : rebase_source : 29acc17c001c317eb851cfb09af1e451063ceda2
2018-01-03 14:34:07 -05:00
Tom Prince a45ea20b93 Bug 1413575: Adjust in-tree references to mozbase documentation to point in-tree. r=ahal
MozReview-Commit-ID: rctbByyjTA

--HG--
extra : rebase_source : a682eb6d77b79640ac9ec20e9d64340613bcfed7
2017-11-20 11:43:13 -07:00
Vedant Chakravadhanula 72dd3218a3 Bug 1218554 - Handled the error while attaching the DMG(macOS). r=whimboo
Variable appDir was being referenced before assignment. Changed the try-except-finally blocks to handle the error.

MozReview-Commit-ID: AHEeVhmPfQI

--HG--
extra : rebase_source : b0dd78f3895bb34c4e916bc0441dd9ae5e643dfc
2017-10-27 22:16:55 +05:30
Steve Armand fa0b6e7c7e Bug 1397849 - Enable py2 and py3 linter on testing/mozbase. r=ahal
MozReview-Commit-ID: GnaVLhtO4un

--HG--
extra : rebase_source : 8839a423c5db505469b813957649b1605ed5737f
2017-09-25 22:57:18 -04:00
Sylvestre Ledru 34d66eceb2 Bug 1404480 - Manage hdiutil output when the volume name contains a space r=whimboo
MozReview-Commit-ID: lntjhP8QdT

--HG--
extra : rebase_source : fbdb9167821971064b0d84cb6417b1d6c45f191e
2017-10-02 13:07:53 +02:00
Sebastian Hengst 59aaffbcda Backed out changeset 9264d5789f76 (bug 1397849) for import failures, e.g. in mochitests and xpcshell tests. r=backout 2017-10-04 15:25:07 +02:00
Steve Armand 50c9b712c0 Bug 1397849 - Enable py2 and py3 linter on testing/mozbase. r=ahal
MozReview-Commit-ID: GnaVLhtO4un

--HG--
extra : rebase_source : 19f47b7f5854b7ee25d9779622ce4cd734ac15e5
2017-09-25 22:57:18 -04:00
Ganti Sai Sarath Chandra 6ed789d12b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn

--HG--
extra : rebase_source : 3ac98bdc648f8a0e3dc6d3b6d42e19dfc295a396
2017-08-19 04:19:06 +05:30
Andrew Halberstadt c9821f47ec Bug 1048446 - [mozinstall] Add ability to download and extract installer from a url, r=whimboo
This is a minor convenience for downloading the installer from a url. It uses requests (which should be
available everywhere in-tree).


MozReview-Commit-ID: 8IfiVkYNr06

--HG--
extra : rebase_source : cb8798cf3adb61008a5dac3794043950e48c3d6a
2017-03-09 12:20:03 -05:00
Andrew Halberstadt 8415b25e37 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

--HG--
extra : rebase_source : b9266a06583083c36477d4e93f5462ee614cdb71
2016-11-16 16:43:42 -05:00
Andrew Halberstadt 2d76b4f70d 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

--HG--
extra : rebase_source : 10f65e612f5b3cebb921c47699f5a8be7cd2ba5a
2016-11-17 16:36:18 -05:00
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
Armen Zambrano Gasparnian 6fad91d10c Bug 1211885 - Do not try to test if a .dmg file is_tarfile(). r=ahal
--HG--
extra : commitid : 2LM7PfRKjEO
extra : histedit_source : fc8e5e1b60adc577639e0bb4c3edf09127d92224
2015-10-06 09:51:34 -04:00
Parth Bakshi 37f134ce21 Bug 1139873 - [mozinstall] get_binary() should not remove the build folder if the specified binary cannot be found. r=whimboo 2015-05-09 10:29:42 -04:00
Julien Pagès 20e1297913 Bug 1140130 - [mozinstall] Exception during installation should cause already installed files to be removed. r=ahal 2015-05-15 11:01:00 -04:00
Armen Zambrano Gasparnian 9758a1120d Bug 1155743 - Change how mozinstall extracts installers, skip tests, remove firefox.exe & release version 1.12. r=ahal 2015-04-23 11:03:01 -04:00
Armen Zambrano Gasparnian 83e8d2b706 Bug 1154892 - mozinstall fails to install on Mac with paths which contain white spaces. r=chmanchester 2015-04-17 09:35:00 -04:00
William Lachance f243dc7e3e Bug 1133076 - Add documentation for mozinstall. r=ahal 2015-02-17 13:48:17 -05:00
Henrik Skupin f6d57696aa Bug 1131980 - Release mozinstall 1.11 to pypi. r=ahal DONTBUILD
--HG--
extra : rebase_source : d62b52d13b3617cd165fbd7504ca78227b8af353
2015-02-11 20:54:23 +01:00
Henrik Skupin 7887f46891 Bug 1130905 - [mozinstall] Fix re-raising of exception in case of failing install or uninstall. r=ahal
--HG--
extra : rebase_source : 455c204936fdf6388fc2d0909e69e6476ad5f71b
2015-02-09 19:03:27 +01:00
Ujjwal Wahi 1cd9ab3a7d Bug 1005856 - [mozinstall] Include original error message when re-throw an exception. r=whimboo
--HG--
extra : rebase_source : 87e8adc5865f1a2f665c6ae83a1d934efcd3fed5
2015-01-08 20:45:07 +05:30
Philipp Kewisch 0ce09769bd Bug 1095151 - [mozinstall] Don't show finder window when installing a dmg on mac. r=whimboo 2014-11-06 23:29:03 +01:00
Chris Manchester 1c97de1410 Bug 1035006 - Fix pyflakes warnings in mozbase.;r=wlach 2014-07-07 14:51:34 -04:00
Joel Maher b019f744f3 Bug 1003356 - fix mozinstall to have version 1.10 not 0.10. r=wlach 2014-04-29 14:46:08 -04: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
Jonathan Griffin 55412b9c2e Bug 917750 - mirror several mozbase packages, r=ahal 2013-10-22 15:42:05 -07:00
Andrew Halberstadt bfcbe4015d Bug 895940 - Mirror mozbase to m-c, r=jhammel 2013-07-25 16:27:53 -04:00
Jeff Hammel 8a0915646b Bug 877733 - bump mozinfo, mozprocess, mozdevice, mozinstall version and mirror to m-c;r=jmaher 2013-06-17 13:23:38 -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
Jeff Hammel 2fb3ca19f0 Bug 790018 - bump version of manifestdestiny and mirror to m-c;r=mcote 2012-09-11 19:46:39 -07:00
Jonathan Griffin d8e0dcfd02 Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 17:58:39 -07:00
Jonathan Griffin a83f8b8d14 backout 69243e829931 due to OSX 10.7 bustage 2012-09-07 17:05:26 -07:00
Jonathan Griffin 0435762ffe Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 15:39:17 -07:00