- 17 7月, 2018 6 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Remote runner: provide fabric version for Python 3 on non-Fedora
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: selftests/functional/test_output_check.py: fix Python 3.4 syntax
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Travis CI: pin pylint version
-
由 Cleber Rosa 提交于
Formatting bytes was only introduced on Python 3.5, so let's just add the bytes. At the same time, there's no need for some of that content to live in the module namespace, as only STDOUT and STDERR are used later in the tests. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Avocado uses inspekt, which in turn uses pylint. On Travis-CI under Python 2.7, pylint 1.9.2 is being used, while on Python 3.4 it's installing 2.0.0. The pylint 2.0.0 API is different, and produces the following error: Running 'inspekt lint --exclude=.git --enable W0101,W0102,W0404,W0611,W0612,W0622' Pylint disabled: W,R,C,E1002,E1101,E1103,E1120,F0401,I0011 Pylint enabled : W0101,W0102,W0404,W0611,W0612,W0622 __init__() got an unexpected keyword argument 'exit' lint FAILED Let's pin the pylint version for predictable results, as we do with pycodestyle. Reference: https://trello.com/c/LDbYJFeR/1374-lint-failed-on-python-3Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Fedora 29 (currently rawhide) has a python2-fabric3 package, so it can use that (Fabric3) as a requirement on both Python 2.7 and 3.4+. But we have not switched to Fabric3 on other environments, so let's keep the fabric (1.x) series there. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 16 7月, 2018 7 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Asset Fetcher: avoid clashes by using namespace dirs Asset Fetcher: add a fetch/build example test avocado/utils/build.py: add a configure utility function Asset Fetcher: remove hashfile attribute Asset Fetcher: remove attribute asset_file Asset fetcher: remove public attributes nameobj and basename
-
由 Cleber Rosa 提交于
The current implementation fails to cache multiple files if their name is the same. The filename *only* will be considered when looking at the cached directories, and if hashes are not given, users will end up with the wrong files, even when they give unique URLs to different files. To give a real example, suppose we have one test that needs a specific asset file (such as an specific kernel version): def test_x86_64(self): self.fetch_asset('https://avocado-project.org/data/linux/x86_64/vmlinuz', asset_hash='0123456789abcdef...') While a second test wants the daily version of a given asset: def test_aarch64(self): self.fetch_asset('https://avocado-project.org/data/linux/aarch64/vmlinuz', expire='1d') If test_x86_64() runs first, it will write to $CACHE_DIR/vmlinuz. The second test, test_aarch64(), may end up having the completely wrong file. Using `asset_cache` is not a possibility, given that it wants the daily kernel. These changes put asset files on a "cache relative directory". If a hash is given, it's safe to put files in a directory indexed "by name". If not, they're put in a directory named after the URL (minus the filename). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This example test fetches two different files from different locations, and uses a data file (shipped *with* the test) on one of them. The goal is to demonstrate a complete example of files you may want to distribute with your test, and the assets you may want to fetch from remote locations. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The most common workflow when building software from source is to configure the source, and then build it. Avocado provides a utility "make" function, but when users need to run "configure" or similar scripts, there's no shortcut. This introduces a configure script, which when used with no explicit configure script name, will attempt to find a couple of suitable scripts, but will forgive the source tree if one doesn't exist. This allows test writers to use the following pattern: from avocado.utils import build build.configure("/path/to/src") build.make("/path/to/src") And have successful results in most source code repositories. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
In another part of the purge of attributes, let's remove hashfile. This attribute is yet another case of an attribute that is not intended for end users, and basically serves as a way to pass information across methods. Because the hash file name is so easily computable, instead of turning it into a private, let's just evaluate the hash file name when needed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This attribute is not really a class attribute intended for users, but a way to pass internal data among methods. Let's make parameters explicit and remove this attribute. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
These attributes are purely internal, and are used only once. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 14 7月, 2018 8 次提交
-
-
由 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 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 13 7月, 2018 1 次提交
-
-
由 Lukáš Doktor 提交于
Add support for passing "--filter-by-tags" and "--filter-by-tags-include-empty". In selftest only "--filter-by-tags" was added to also test what happens when argument is False. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 12 7月, 2018 1 次提交
-
-
由 Lukáš Doktor 提交于
Respect the "~/.ssh/config" files when using remote runner to allow users to configure their connection details. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 11 7月, 2018 2 次提交
-
-
由 Lukáš Doktor 提交于
Currently each argument is handled on it's own. Let's change it to list of whitelisted arguments with supported value types. There is a slight difference in "-m" argument which uses the long "--mux-yaml" with this change. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 10 7月, 2018 4 次提交
-
-
由 Lukáš Doktor 提交于
Our "other resources" section is fairly limited, let's add new items. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
I never tried this plugin but based on the description it seems to allow using azure as client for Avocado (or even avocado-vt?) tests. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The PyYAML-4.0 to PyYAML-4.2b1 lack "construct_python_str" which is used in varianter_yaml_to_mux. Note that 4.0 nor 4.1 were ever released on pip but they exist in some distributions, therefor it makes sense to include them here. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Fix Rawhide build failure due to fabric package rename
-
- 04 7月, 2018 5 次提交
-
-
由 Lukáš Doktor 提交于
Let's double-check the recorded output is correct and not just it's presence. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This logger is used by stdout/stderr recorder. We decided to keep it in text-mode so let's treat the encoding errors by using "astring.to_text" and "xmlcharrefreplace" error handling in case odd characters are present. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This __init__ does noting, let's remove it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The only difference between TemporaryScript and Script init is the mkdtemp. Let's simply generate the path and call Script's init to avoid code duplicity (and possible differences). Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently the "Script" only uses text mode to open files, let's allow to set any mode by using "open_mode" to allow passing binary data, when needed. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 03 7月, 2018 2 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: multipath: Replaced the sleep with wait_for
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Test Loader: use enums from from Python 3.4
-
- 29 6月, 2018 1 次提交
-
-
由 Lukáš Doktor 提交于
It has been reported that on some occasions python can report extra lines when the pipe is broken: python2 -c 'print("Hello, World!")' | no-such-command -bash: no-such-command: command not found close failed in file object destructor: sys.excepthook is missing lost sys.stderr Let's remove the check for the number of lines and only keep the check for unexpected words. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 28 6月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 27 6月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
This change reveleaed a couple of location in the symbolic names where not being used, but their special values were being evaluated. Let's avoid using the special (and subtle) meaning of ALL (True) and DEFAULT/AVAILABLE (which evaluate to False). The enum library is part of the standard library, starting from 3.4 (which is the mininum version we require for Avocado). On Python 2.7, we can rely on the backport package. This is of course not necessary right now, but I feel that we can continue modernizing the code base, and not wait for 2020 and then be liberated to use newer constructs and libraries. Reference: https://trello.com/c/k90E1kdg/1357-loader-remove-compatibility-aliasesSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
- 26 6月, 2018 1 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: selftests/checkall: check load failures
-