- 04 7月, 2018 3 次提交
-
-
由 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
-
- 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 3 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: selftests/checkall: check load failures
-
由 Lukáš Doktor 提交于
Many arguments are provided by plugins, let's suggest checking the installed plugins on unrecognized argument to raise awareness of the need to install additional plugins which might help people that see Avocado for the first time. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 23 6月, 2018 2 次提交
-
-
由 Lukáš Doktor 提交于
The TAP plugin is important source of information in case the machine crashes, which is why we do force-flush on each logged line. Anyway this is probably not that important when re-printing the test logs. Let's add explicit "__flush" method and use it only on places where important info (test progress) were printed. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently TAP plugin includes test logs. This changed several times in the history, but mainly is not needed, so let's disable it by default and add argument to enable it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 21 6月, 2018 2 次提交
-
-
由 Narasimhan V 提交于
We were sleeping instead of waiting for the service to become stable, after a service restart. So, replaced the sleep with wait_for. Signed-off-by: NNarasimhan V <sim@linux.vnet.ibm.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 20 6月, 2018 4 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
The legacy disable value is currently transformed in a loop using the same variable, which results in TypeError as the transformed output is not a valid input. Let's fix it by only single transformation in case `setstate` is not used. With `setstate` the value can be safely overridden as the value comes from `setstate`. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
During the parallel execution of unittests, only conditions for FAIL and ERROR are checked. Under Python > 3.4, that's fine because load failures are treated as FAILures: $ python3.6 Python 3.6.5 (default, Mar 29 2018, 18:20:46) [GCC 8.0.1 20180317 (Red Hat 8.0.1-0.19)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import unittest.loader >>> l = unittest.loader.TestLoader() >>> l.loadTestsFromName('selftests.unit.test_utils_cpu.Cpu.test_cpu_arch_ppc64_power8') <unittest.suite.TestSuite tests=[<unittest.loader._FailedTest testMethod=test_utils_cpu>]> But, under Python 3.4, no such treatment is done: $ python3.4 Python 3.4.3 (default, Jan 13 2018, 13:06:46) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import unittest.loader >>> l = unittest.loader.TestLoader() >>> l.loadTestsFromName('selftests.unit.test_utils_cpu.Cpu.test_cpu_arch_ppc64_power8') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/cleber/.local/lib/python3.4/unittest/loader.py", line 114, in loadTestsFromName parent, obj = obj, getattr(obj, part) AttributeError: 'module' object has no attribute 'test_utils_cpu' This implements a simple check for load failures, which is not perfect, but better than none. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Removing the deprecated AVOCADO_TEST_DATADIR
-
- 19 6月, 2018 1 次提交
-
-
由 Narasimhan V 提交于
AVOCADO_TEST_DATADIR is deprecated. Removing them from the examples and selftests. Signed-off-by: NNarasimhan V <sim@linux.vnet.ibm.com>
-
- 13 6月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 12 6月, 2018 17 次提交
-
-
由 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 提交于
The check for mock version is only applicable to Python 2 versions, Python 3 is fine on the versions we support. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Instead of using integers or even strings, let's use a more Pythonic interface to disable/enable idle states. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The Linux Kernel will not change the content of those files based on locale. So, let's stick with honest binary mode when reading those files. While at it, also change the regex patterns, as they wi'll be matched agains /proc/* and /sys/* content, which should really be treated as binary. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Make it more Pythonic, like return True/False and not needing to manually compile regexes. Reference: https://docs.python.org/3/library/re.html#re.compileSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: test_utils_service: wrap long lines service.py: add mask, unmask and reset-failed to systemd service.py: multi-access safe call - bugfix service.py: pass runner to service manager
-
由 Radek Duda 提交于
Signed-off-by: NRadek Duda <rduda@redhat.com>
-
由 Radek Duda 提交于
reset-failed, mask, unmask options are added to service management ((majority of which are transerred from https://github.com/avocado-framework/avocado-vt/blob/master/virttest/staging/service.py) - see avocado-framework/avocado-vt#1565) Signed-off-by: NRadek Duda <rduda@redhat.com>
-
由 Radek Duda 提交于
If `service_manager` is called multiple times, its previous instance is used. The problem arises if different runner is used. Because it leads to situation when service commands are passed to wrong VM or service is run as systemd insted of SysVinit or vice versa. Global variables, where information from previous run were stored were thus removed as well as then unused functions. Selftest for two different calls was also added. Steps to invoke: ``` ssn_c = vm_client.vm.wait_for_login() runner = remote.RemoteRunner(session=ssn_c) vdagentd = service.specific_service_manager("spice-vdagentd", run=runner.run) vdagentd.stop() # send to vm_client ssn_g = vm_guest.vm.wait_for_login() runner = remote.RemoteRunner(session=ssn_g) vdagentd = service.specific_service_manager("spice-vdagentd", run=runner.run) vdagentd.stop() # send to vm_client (again!) ``` As a trade-off this may affect speed when invoked in a loop since `service_manager` won't be cached any more. Signed-off-by: NRadek Duda <rduda@redhat.com>
-
由 Radek Duda 提交于
If `run` parameter is not passed, `ServiceManager` is always run by `process.run` while other runner could be used (e.g. `remote.RemoteRunner().run`). Signed-off-by: NRadek Duda <rduda@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Docs: reference Avocado-VT from Avocado's installation instructions
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: utils.pci: Treat incorrect value in get_slot_from_sysfs utils.pci: Avoid unnecessary match in get_slot_from_sysfs
-
Moved original whiteboard example test to selftests and then created a simpler example code. Reference: https://trello.com/c/sG6J0VpwSigned-off-by: NWainer dos Santos Moschetta <wainersm@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Add an Amazon Linux Probe, for both versions 1 and 2 of the distribution. Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
- 11 6月, 2018 3 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: avocado.Test: remove once deprecated datadir avocado.Test: removal of srcdir
-
由 Cleber Rosa 提交于
The `avocado.Test.datadir` attribute has been deprecated, and it's now time to have it removed for good. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Narasimhan V 提交于
PCI Bridges can be represented in lspci output in different ways. But they are all of Class 06. So, handling using class id instead, which is a better way. Signed-off-by: NNarasimhan V <sim@linux.vnet.ibm.com>
-