Sergei Trofimov
96dd100b70
utils/toggle_set: fix merge behavior
...
- Change how "source" and "dest" are handled inside merge() to be more
sane and less confusing, ensuring that disabling toggles are merged
correctly.
- Do not drop disabling values during merge, to ensure that merging
is a transitive operation.
- Add unit tests for the above fixes.
2018-07-11 10:48:00 +01:00
Marc Bonnici
e485b9ed39
utils/version: do not decode bytes
...
Check that the resulting output inside get_commit() is a str before
attempting to decode it when running on Python 3.
2018-07-11 10:39:38 +01:00
Marc Bonnici
86dcfbf595
workloads/androbench: Fix Formatting
2018-07-10 15:57:18 +01:00
Marc Bonnici
1b58390ff5
workloads/androbench: Fix for devices running Android 8.1
...
On some devices running Android 8.1 the start benchmark button was
failing to be clicked, this is a workaround to click on the coordinates
of the button instead of the UiObject iteslf.
2018-07-10 15:57:18 +01:00
Sergei Trofimov
ae4fdb9e77
dev_scripts: pylint: check both Python Versions
...
Check both "python" and "python3" for the pylint package, as it is
possible that pylint will be installed via Python 3 on Python 2 systems.
2018-07-10 12:56:51 +01:00
Marc Bonnici
5714c8e6a1
wa: Additional pylint fixes
2018-07-10 12:56:51 +01:00
Marc Bonnici
791d9496a7
wa: Pylint Fixes for Travis
...
Pylint has trouble using imports from the distutils module in
virtualenvs so we need to explicitly ignore these imports.
2018-07-10 12:56:51 +01:00
Marc Bonnici
e8b0d42758
wa: PEP8 Fixes
2018-07-10 12:56:51 +01:00
Marc Bonnici
97cf0ac059
travis: Enable pylint and pep8 checkers
2018-07-10 12:56:51 +01:00
Marc Bonnici
f3dc94b95e
travis: Remove tests for Python 3.4
...
Testing with Python3.4 takes significantly longer than with 2.7 or 3.6
due to having to compile some dependencies from source each time.
2018-07-10 12:56:51 +01:00
Marc Bonnici
ad87a40e06
Travis: Run the idle workload as part of the tests.
2018-07-10 12:56:51 +01:00
Sergei Trofimov
fd1dd789bf
fw/output: update internal state on write_config()
...
Update the internal _combined_config object with the one that
has been written to ensure that the serialized and run time states are
the same.
2018-07-09 16:00:07 +01:00
Sergei Trofimov
c410d2e1a1
I lint, therefore I am
...
Implement fixes for the most recent pylint version.
2018-07-09 15:59:40 +01:00
Sergei Trofimov
0e0d4e0ff0
dev_scripts: port pylint plugins to Python 3
2018-07-09 15:59:40 +01:00
Marc Bonnici
915c363fd9
wa: 3.0.0 Release preparation
...
- Update 'setup.py' package name to 'wlauto' as 'wa' is already taken on
PyPi and update documentation accordingly.
- Update old references to Python 2.7
v3.0.0
2018-07-06 17:39:26 +01:00
Sergei Trofimov
4043631abf
setup.py: prepare for the 3.0.0 release
...
- Add URL for the package pointing to the GitHub repo
- Add -s option to sdist command that strips away the git commit
hash from the generated package version (needed for upload to
PyPI).
2018-07-06 17:15:02 +01:00
Marc Bonnici
0a42f24590
README: Update with WA3 Information
2018-07-06 15:22:12 +01:00
Marc Bonnici
ac01bf38d5
extras/Dockerfile: Update to use latest releases
...
Update to use the latest release version of WA and devlib.
2018-07-06 14:42:14 +01:00
Marc Bonnici
4a10ea1065
dev_scripts/pep8: Update error message to flake8
2018-07-06 14:39:41 +01:00
Marc Bonnici
925bc8b719
wa: pep8 fixes
2018-07-06 14:39:41 +01:00
Sergei Trofimov
4b86fa5aee
commands/show: disable pylint
...
Disable pylint for wa/commands/show.py. Due to changes in recent
versions of pylint, it now takes an excessively long time to
process this file.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
109daa7f8c
dev_scripts: pylint fixes
...
- Add "set -e" to abort on error
- Update the required version
- Fix path for the "default" runs
2018-07-06 14:39:41 +01:00
Sergei Trofimov
03eafe6b33
framework: pep8 fixes
...
Fix issues reported by flake8.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
88c5005b38
dev_scripts: pylint: ignore errors per subdir
...
Add the ability to ignore specific pylint errors on per-subpackage or
per-module basis by adding a plugin that checks the path of the module
against pre-defined sub-paths and inserts disable tags as needed.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
651adaaa57
dev_scripts: switch from pep8 to flake8
...
The pep8 code checker is deprecated and will be removed in the future.
Switch to using its successor, flake8.
Also, add a couple of more entries to ignored exceptions.
2018-07-06 14:39:41 +01:00
Marc Bonnici
dbea1d7d09
wa/commands: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
c6ec7af665
wa/commands: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
6afd710bd1
wa/instruments: pylint/fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
0b8501e010
wa/instruments: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
30471613de
wa/output_processors: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
7f9737a844
wa/output_processors: Fix pep8
2018-07-06 14:39:41 +01:00
Marc Bonnici
9b2bc1369c
wa/workloads: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
6e94cbd36b
wa/workloads: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
185bff9029
wa/utils: Fix pylint errors
2018-07-06 14:39:41 +01:00
Marc Bonnici
1550e9a788
wa/utils: Remove unrequired imports
2018-07-06 14:39:41 +01:00
Marc Bonnici
4d1c03cc5c
utils/types: Rename cls
argument
2018-07-06 14:39:41 +01:00
Marc Bonnici
cbc7b2647f
utils/types: Ignore import errors
2018-07-06 14:39:41 +01:00
Marc Bonnici
1a08b2a6c7
utils: pep8 fixes
2018-07-06 14:39:41 +01:00
Sergei Trofimov
f74b7ae78c
framework: fix pylint issues
...
Fix/disable checks for issues reported by pylint under wa/framework.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
9025ea32b1
extras/pylintrc: disable a few checks
...
Globally disable a few more checks that we don't care about (or that
produce too many false positives).
2018-07-06 14:39:41 +01:00
Marc Bonnici
a660f5d4fe
Travis: Add initial version of travis configuration file
...
Currently will execute the unittests using nose2 for python versions
2.7, 3.4 and 3.6
2018-07-05 16:58:00 +01:00
Waleed El-Geresy
1c48589860
doc: Rename execution_model to framework_overview
...
An update to more aptly suit the new general title of the section.
2018-07-05 11:34:19 +01:00
Waleed El-Geresy
a3b02872ac
Docs: Run Output - Clarification and Additions
...
Clarification of the meanings of and the distinction between the
output-related terms iteration, job, workload and section for those
unfamiliar
- Add entries to the glossary and references to the glossary
- Added section on Configuration parameter hierarchy
- Added section on the number and names of directories generated for
jobs in the run output folder
2018-07-05 11:34:19 +01:00
Sergei Trofimov
4098c0623b
tests: quieten signal logger
...
Set signal logger level to CRITICAL to prevent it from spewing out
log message on the console for expected errors during tests.
2018-07-05 10:36:57 +01:00
Sergei Trofimov
45b5de65d1
dev_scripts: rename copyright_updater
...
Rename copyright_updater to update_copyrights in order to mach the
naming convention of other scripts.
2018-07-04 16:33:31 +01:00
Sergei Trofimov
09d7d55772
dev_scripts: enhance copyright updater
...
- Expand the types for files it checks to include Java, C, and shell
scripts.
- Add exclusion paths.
- Add copyright header to files that don't already have one but should.
2018-07-04 16:33:31 +01:00
Sergei Trofimov
8878cc20d4
Update copyright headers.
...
- Add copyright headers to files that did not already have them
- Update the year to the last year the file was modified in files with
existing headers.
2018-07-04 16:33:31 +01:00
Marc Bonnici
5892b1de18
commands/revent: Fix missing import
2018-07-04 16:33:08 +01:00
Marc Bonnici
452d91b2d6
output_processors/sqlite: Fix incorrect error type and import
2018-07-04 16:33:08 +01:00
Marc Bonnici
c9ff15ca53
wa/workloads: Fix missing imports
2018-07-04 16:33:08 +01:00