- 13 2月, 2018 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Which gives predictable and stable results across Python versions. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 10 2月, 2018 2 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: SIMPLE tests: improve status API
-
由 Amador Pahim 提交于
Currently simple tests have a limited status API, being able to set only the WARN status by generating an output string in a very specific and hard-coded format. This patch, while respects the current behaviour, creates configuration keys, allowing users to provide regular expressions to search for in the test outputs, aiming to set the final test status to either WARN or SKIP when the test finishes with exit code 0. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 08 2月, 2018 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 07 2月, 2018 1 次提交
-
-
由 Amador Pahim 提交于
Success rate to use the following formula: ( PASS + WARN ) / ( TOTAL - SKIP - CANCEL ) * 100 Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 06 2月, 2018 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
The commit 3a66bcbf is causing the "selftests.functional.test_basic.RunnerOperationTest.test_read" selftest to fail. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 04 2月, 2018 3 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Whiteboard was (probably accidentally) removed from the test attributes. This patch recreates the whiteboard. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 03 2月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 01 2月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
There's a difference on how Python 2 and 3 represents a set(), which is true for the set derived FilterSet. It just happens the a tree fingerprint depends on its environment, which depends on the FilterSet representation. Let's provide a predictive __repr__ implementation, and consequently, a predictive fingerprint for Trees across Python versions. This fixes the following unittest failure on Python 3: FAIL: test_fingerprint (selftests.unit.test_tree.TreeNode) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cleber/src/avocado/avocado/selftests/unit/test_tree.py", line 63, in test_fingerprint "/foo{},{},FilterSet([]),FilterSet([])") AssertionError: '/foo{},{},FilterSet(),FilterSet()' != '/foo{},{},FilterSet([]),FilterSet([])' - /foo{},{},FilterSet(),FilterSet() + /foo{},{},FilterSet([]),FilterSet([]) ? ++ ++ Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 29 1月, 2018 1 次提交
-
-
由 Amador Pahim 提交于
The YAML Test Loader is sending the messages for the UI. They should go to the Job Log instead. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 25 1月, 2018 4 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
Count WARN in to calculate the success rate in the HTML report. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Harish 提交于
Add support to provide input with subprocess.Popen's stdin.write method. Optionally flush the input buffer. Signed-off-by: NHarish <harish@linux.vnet.ibm.com>
-
- 24 1月, 2018 4 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
Recently we introduced "in-package-config" which is packaged by default with Avocado and in the original version if exists the system-wide config is not used at all. I think this is unexpected behavior as users are used to set configs in /etc so this patch changes it to first use in-package-config, then in-etc-config and last the user-config. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Unless a lower version is set as a requirement, the RPM building process will attempt to download from PyPI, which is not allowed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 23 1月, 2018 9 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
In case no suitable jobdir location can be created (user basically can't write anywhere) Avocado crashes without a meaningful message, let's provide one. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The user-config location ("~/.config/avocado.conf") might not be writable by users (usually when executing in docker without user home-dir). Let's use the file if available, but don't fail in case we fail to produce it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
Some tweaks here and there found during the upkeep. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The remote execution is an optional plugin, let's just mention the ways and link the description to the remote_runners there. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Add the description of the recent changes of Avocado packaging to LTS.next documentation. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 22 1月, 2018 4 次提交
-
-
由 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>
-
由 Lukáš Doktor 提交于
With the recent changes the "libexec" dir is only available when installed via RPM. In order to have "libexec" files available as standard package we have to include it in the package_files dir (avocado/). The benefit is that we can actually use package resources to get the location in "avocado exec-path" command. For packaging purposes let's simply symlink $libexec/avocado to the packaged $avocado/libexec location so there is the usual location, but keep using the python-location by default. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 20 1月, 2018 2 次提交
-
-
由 Lukáš Doktor 提交于
With the python3 patches we have another core dependency on six. Let's include it in setup.py as without it Avocado is unusable. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
In case on of the first cleanups fails the following ones are not performed, leaving uncleaned files. Lets perform always all steps and then check for occurred errors. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 19 1月, 2018 2 次提交
-
-
由 Cleber Rosa 提交于
PEP461 is only available on Python 3.5. Our CI (Travis) is set to run on Python 3.4, and there's no reason not to be compatible with those older Python versions IMO. Let's then use a syntax that will produce the same content, but will work on all Python 3.x versions. Reference: https://docs.python.org/3.5/whatsnew/3.5.htmlSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The prevailing coding style of Avocado (unittest.TestCase) tests is to use the specialized assert methods, such as assertNotRegexpMatches. Unfortunately, the regular expression related assertion methods have been through a messy renaming. In theory, assertNotRegexpMatches and assertRegexpMatches should be available in Python 3.0 and 3.1, but not in Python >= 3.2, where it got renamed to assertRegex and assertNotRegex. In practice, in my system with Python 3.6.3, I see: >>> unittest.TestCase.assertNotRegexpMatches <function TestCase._deprecate.<locals>.deprecated_func at 0x7f3b85b709d8> But in Travis, with Python 3.4, it's not available: ERROR: test_directives_regex (selftests.unit.test_safeloader.DocstringDirectives) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/avocado-framework/avocado/selftests/unit/test_safeloader.py", line 135, in test_directives_regex self.assertNotRegexpMatches(directive, safeloader.DOCSTRING_DIRECTIVE_RE) AttributeError: 'DocstringDirectives' object has no attribute 'assertNotRegexpMatches' Let's simplify things and just use a regex match and check for its result. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-