- 24 4月, 2019 5 次提交
-
-
由 Cleber Rosa 提交于
The real goal of the test_imports attribute is to keep track of classes that were imported. The naming made sense given that original this class (PythonModule) was called AvocadoModule and was hardcoded to look for Test classes from the avocado module. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
And those that don't. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
A base class exists in this module, and number of the test classes inherit from it, from the single supposed benefit of sharing a (static) method. Let's flatten the inheritance, and make the static method a utility function, because, if not for anything else, It improves code readability. Note: this was actually observed while working on the safeloader Python unittest detection improvements, meaning that in theory the safeloader improvements would make this unnecessary for the actual loading support. Still, I believe there are benefits (readability, maintenance) with these changes. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 23 4月, 2019 7 次提交
-
-
由 Cleber Rosa 提交于
On `_examine_class()`, the original assigment of the avocado tags to the `cl_tags` variables is not necessary because when it's used in the first occurrence, a `continue` statement follows the assigment, so it's never reused. On the other hand, it may be assigned without ever being used. On `find_avocado_tests()`, it's just an opmization because `cl_tags` was only being used once in the function, and at the same time matches the style used in the previous function. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
By renaming it to PythonModule, and making the module and klass names configurable, it should be reusable for other types of Python modules and classes, including unittest.TestCase. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
By adding internal methods to deal with import from and plain import statements. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Just like the next block is doing. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The module path only get's updated on the AvocadoModule constructor, so after that, it won't change and the `path` variable is thus unnecessary. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Adding info about the missing `is_avocado` parameter, and remove docstring for non existing parameter (most probably a leftover from _examine_class()). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Jan Richter 提交于
Signed-off-by: NJan Richter <jarichte@redhat.com>
-
- 19 4月, 2019 1 次提交
-
-
由 Praveen K Pandey 提交于
Merge branch 'selftests_extract_from_checkall' of https://github.com/clebergnu/avocado into clebergnu-selftests_extract_from_checkall Selftests: extract from checkall
-
- 18 4月, 2019 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 17 4月, 2019 10 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
And the requirement target for "check", given that it's already called from the selftests/checkall script. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
These are superior than the ones defined in the test, and using them removes the duplicate code. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The network utility used to (attempt to) get a free port defaults to picking sequential ports. But, that's not a requirement of this test. When running tests in parallel, the same port may get allocated when a sequential approach is used, and that is greatly minimized when random ports are requested. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
When working on a private fork and topic branches, it's helpful to not have this limitation, and have builds triggered for them. For the main repo, it should not a problem given that branches are not often (only on LTS releases), and those are also desirable to have builds run. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 09 4月, 2019 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 02 4月, 2019 6 次提交
-
-
由 Cleber Rosa 提交于
Instead of one large test method, let's have one for each. Also, let's define the base_logdir from the calling side, as with that we can be sure that the test won't do any funky business, and the tearDown() won't be trying to recursively remove what it shouldn't. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Before and after variants get inserted. This should make it easier to both follow the code, and eventually to make the test factory a documented structure. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
On all tested Python 3 versions, the SimpleQueue is available from the multiprocessing module, so let's drop the conditional import. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
A "from <module> import <symbol>" statement will not always have a module name set, one example is: from . import BASEDIR In these situations, the statement's module attribute will be None. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Which are only necessary under Python 2, and thus, not needed anymore. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The previous working dropping Python 2, removed the explicit requirement of the six module, but because stevedore depends on it, it would still be installed. Now, every trace of explicit six usage has been removed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 01 4月, 2019 2 次提交
-
-
由 Jan Richter 提交于
Signed-off-by: NJan Richter <jarichte@redhat.com>
-
由 Cleber Rosa 提交于
As there's no reason for this file to be executable. Reference: https://github.com/avocado-framework/avocado/issues/3064Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 30 3月, 2019 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 29 3月, 2019 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 28 3月, 2019 1 次提交
-
-
由 Nageswara R Sastry 提交于
Added append_file, append_one_line functions to genio. There are situations where files with more than one line are to be created with some filtered data. In those situations, the existing functions namely write_file, write_one_line are not helping. Signed-off-by: NNageswara R Sastry <rnsastry@linux.vnet.ibm.com>
-
- 27 3月, 2019 1 次提交
-
-
由 Jan Richter 提交于
Settings Dispatcher: move it to its own module
-
- 26 3月, 2019 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 23 3月, 2019 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-