summaryrefslogtreecommitdiffstats
path: root/testing/framework/TestCommon.py
Commit message (Collapse)AuthorAgeFilesLines
* Run autoflake on codeMats Wichmann2020-09-211-1/+0
| | | | | | | | | | Eliminate unneeded imports, and a few unneeded statements - usually "pass" where it is not syntactically needed. A couple of import try blocks were eliminated or changed when they're "cannot happen" due to current floor Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fixed Docbook Tool and updated its tests.Dirk Baechle2020-06-211-0/+19
|
* Cleanups in tests and in frameworkMats Wichmann2020-06-141-6/+2
| | | | | | | | | | | | * Some Py2/Py3 compat blocks were simplified to Py3 only * some sequences of define-cleaup-function + atexit.register were changed to use the decorator (this works if func needs to take no arguments) * Lightly update a bunch of docstrings in TestCmd, and reformat a few places, towards the style we're generally using now. * call_python() in TestCmdTests was modernized to use subprocess.run Signed-off-by: Mats Wichmann <mats@linux.com>
* rm-py2: Remove "from __future__" from more placesMats Wichmann2020-02-201-2/+0
| | | | | | | | | | | | | | | A couple of minor reformats along the way, most prominently, in tests, if being edited anyway, make sure the docstring most tests have is actually the docstring (sometimes the __revision__ line came before, which makes the string not be the docstring). Snuck in some minor framework changes that were orphaned when another draft PR was not needed: this almost all docstring changes, the functional part is using casefold instead of lower in a match func - a slightly better approach which is now possible that Py2 compatibility is not needed. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix incorrect testing assumptions for SolarisJakub Kulik2019-11-011-2/+2
|
* Merge remote-tracking branch 'upstream/master' into ↵William Deegan2018-10-151-63/+42
|\ | | | | | | fix_java_tests_path_with_spaces
| * fixed minor typosPaweł Tomulik2018-10-051-5/+5
| |
| * fixed some docs in TestCommon.py and refactored a littlePaweł Tomulik2018-10-051-59/+39
| |
| * make the must[_not]_contain_...() functions compatible with str.findPaweł Tomulik2018-10-051-9/+9
| |
| * fixed bugs in must_[not_]_contain()Paweł Tomulik2018-10-051-6/+5
| |
* | Add test for 1.8. Modularize java tests and move files to a fixture. Change ↵William Deegan2018-10-011-3/+8
|/ | | | TestCommon's options_arguments to keep passed lists and not join them into a string.
* Try a more scons-y file conversion for Py3 file readsMats Wichmann2018-07-311-8/+16
| | | | | | | | | | Instead of custom conversion as in the previous iteration, use the to_bytes function. The two known tests which incorrectly let the text-mode xml file be opened in binary mode are adjusted to supply mode='r' Signed-off-by: Mats Wichmann <mats@linux.com>
* Testing: python 3 fix for must_containMats Wichmann2018-07-251-0/+9
| | | | | | | | | | | | | | TestCommon defines a method must_contain which checks for a file including a given string. With Python 3, the test runs into some typing problems. This could be fixed either by changing all the tests which call the routine either omitting the mode argument (which then defaults to 'rb'), or specifying a mode which includes 'b'; or by modifying must_contain to align the types of the file data and the data to check for. This patch uses the latter approach. This is a test-only change, no run-time scons code is modified. Signed-off-by: Mats Wichmann <mats@linux.com>
* move test files from QMTest to testing/framework. QMtest hasn't been used in ↵William Deegan2018-04-301-0/+748
quite some time