- 14 8月, 2017 9 次提交
-
-
由 Paolo Bonzini 提交于
At least, selftests.unit.test_xunit passes. Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
-
由 Paolo Bonzini 提交于
Part of fixing selftests.unit.test_xunit under Python 3. Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
-
由 Paolo Bonzini 提交于
The precision of float printing has changed. To provide the same output for Python 2 and 3, explicitly specify the number of significant digits. Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
-
由 Paolo Bonzini 提交于
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Writing to sys.stdout|stderr from inside test should be treated as any other output in test and should be prefixed by [std* ] to emphasize it's not comming directly from logging, but from direct output. This prefix should and is only be prefixed in job.log and not in stdout|stderr files. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The LoggingFile is used to forward sys.stdout|stderr messages into expected loggers. Using "paramiko" or "fabric" seems like a bug to me. Let's only forward them into TEST_LOG, which also propagates to job.log. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
We are about to need to allow different log prefixes per logger in our LoggingFile helper class. Let's allow it by using list of prefixes, instead of a single prefix. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The argument logger actually expects multiple loggers in a list. Let's reflect that to avoid possible confusion. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 11 8月, 2017 5 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
There are bunch of really short, one-time-used variables defined globally, which is not really necessary, nor easy to follow. Let's just define those one/two liners directly to where they are used. 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>
-
- 10 8月, 2017 3 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
On python3 this naked open reports ResourceWarning. Let's properly close it: avocado/utils/archive.py:191: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/avocado___main__rv2ihor0/tmp0drzyrsb/ link_to_file2' mode='r' encoding='UTF-8'> src = open(dst, 'r').read() 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 byte vs string file io for python 3
-
- 09 8月, 2017 1 次提交
-
-
由 Jan Zerebecki 提交于
Reference: https://github.com/avocado-framework/avocado/issues/2024Signed-off-by: NJan Zerebecki <jan.foss@zerebecki.de>
-
- 07 8月, 2017 1 次提交
-
-
由 Lukáš Doktor 提交于
Most of the LazyProperty variables in Test are actually always read on "get_state" and other occasions so it does not make sense to set it Lazily. Also protect the remaining lazily initialized property from overriding by using @property instead of our custom LazyProperty, which is not really a property. This commit requires some adjustments to nasty example tests which used to override self.srcdir, which is not allowed (and restricted since this commit). Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 06 8月, 2017 5 次提交
-
-
由 Lukáš Doktor 提交于
The fail_reason is the instance of the actual exception. We do store it only as string in case of old-type exception, but even new style exceptions might be not available when sys.path is different causing unpickle on runner part impossible. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Use the new ability to report full mappings after the discovery and allow using `test_reference_resolver_class` to specify the resolver class intended for test discovery. To allow sufficient flexibility also support `test_reference_resolver_args` to override resolver arguments and `test_reference_resolver_extra` to extend the resolver extra_params. Note the overridden arguments apply only to the resolver, not to whole Avocado so it's not possible to override wrappers or such just for a single test execution. Anyway it is possible to set `vt_config` just for that single loader, which is more-than useful. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
When no variants are provided Avocado sets the default variant, but instead of list of mux paths it created just string "/run", which processed into ["/", "r", "u", "n"]. Let's fix this by setting list. Also the proper mux_path should be `/run/*` in order to include all children nodes of the "/run". Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently only unbounded mapping is possible as on failure we want to list all the available tests by given loaders without initializing them first. This patch allows second-stage mapping which is a bounded method and is called after `LoaderProxy.discover`, allowing the test loaders to update the mappings according to the test discovery. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Let's add yaml_testsuite loader which allows parsing YAML file and producing testsuite out of it. At this point due to Avocado limitation it only supports FileLoader-based test discovery, but it should be possible with greater changes to extend the scope of this loader for just about any Avocado loader. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 05 8月, 2017 2 次提交
-
-
由 Lukáš Doktor 提交于
Currently when the loader produces "params" entry, Avocado reports crash. Let's allow loaders to also fill "params" and override the test params. Currently we don't support merging the params defined by loader with varianter params so we at least notify the user about such situation, but such feature should definitely be added later. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The existing way to produce variant_ids can be useful for other plugins as well. Let's extract it and move it into `varianter`. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 25 7月, 2017 2 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
All test loaders now return the test name as a value under the first level test class parameters. Let's drop the legacy code that used to check at the test parameters "id" key and the test class parameter "path" key. This has also been tested with external loaders such as Avocado-VT and Avocado-Virt. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 24 7月, 2017 1 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 19 7月, 2017 1 次提交
-
-
由 Lukáš Doktor 提交于
The replay plugin checks for `remote` execution, which requires remote runner to be installed. Let's avoid crash by supplying default on missing attribute. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 30 6月, 2017 5 次提交
-
-
由 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>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 28 6月, 2017 4 次提交
-
-
由 Cleber Rosa 提交于
It looks like the tags mechanism has a lot of potential to be used very often, so a long command line option seems to much typing. Let's add `-t` (for *t*ags), to allow users to run commands which are much nicer to type, such as: $ avocado run . -t BZ12345678 Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This symlink is a legacy compatibility that now, after another LTS release doesn't need to be created anymore. The loading of a `urls` file has been kept, as a way to keep compatibility when replaying jobs created under older versions. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The location of the HTML report was moved from `$RESULTS/html/results.html` to `$RESULTS/results.html`, while a link was left on the first location. We don't have to carry that compatibility link anymore. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
When trying out Avocado installations, I wanted to silence the plugin errors that I knew would fail to load. I chose to do that by running a command such as: $ avocado --config=silent_plugins.conf run passtest.py But it did not behave as expected. The reason is that plugins are loaded first, and then the parsing of command line (with additional parsing of config files) is done. Let's parse the command line earlier then. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 27 6月, 2017 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-