- 18 9月, 2018 8 次提交
-
-
由 Lukáš Doktor 提交于
Explicitly close the files we are using. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
We use "iteritems()" on this object which on py2 results int "dict.iteritems", but on py3 it uses "dict.items". Because we want to modify the outcome we need to replace the "dict.items" with the slow implementation using "__getitem__" internally. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
We use the __str__ to generate fingerprint and re-ordering the set leads to different fingerprints. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
This change updates the handle_exception function so it doesn't need to use a bare-except anymore. The code except responsible for get the crash directory was kept in a separeted function. This specific code snippet can't raise any exception. Internally it uses the avocado.utils.path.usable_rw_dir that already deals with possible exceptions. Another possible point of exception could be the import of avocado.core.data_dir module before avocado be installed itself. However this import was moved to the initial block of import and dealed proper as ImportError. This way seems all the code insisde try block keep being processed by try-except blocks without bare-except like before. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 17 9月, 2018 1 次提交
-
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 15 9月, 2018 1 次提交
-
-
由 Cleber Rosa 提交于
I was trying to use the external runner, in a reasonably simple way: from within a project (QEMU) build dir, I'd run: $ avocado run --external-runner=tests/qemu-iotests/check \ --external-runner-chdir=runner -- 001 002 But, what should work, did not. The problem is with the non-absolute path to the external runner, that is needed because we're changing directories. Absolute paths won't hurt otherwise (when no chdir is done), so it's always done here. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 12 9月, 2018 1 次提交
-
-
由 Praveen K Pandey 提交于
added disk utility 1- get_disk_blocksize -- this function return block size of given disk(path) 2- get_disks -- this function return all disk present in system Signed-off-by: NPraveen K Pandey <praveen@linux.vnet.ibm.com>
-
- 07 9月, 2018 16 次提交
-
-
由 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>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Lukáš Doktor 提交于
The iterating through module statements and lookout for classes is strictly tied to module status (avocado imports). Let's move it into the "AvocadoModule" and only treat classes in "find_avocado_tests". Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Some of our inputs were not protected against unwanted input, resulting in interrupted discovery and no tests reported. Let's fix that and make sure we keep discovering them. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
This change enables pylint check w0631. Since the only occurrence is on external spark library, it was disabled specifically. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
This check makes sure the excepts in try/except are not duplicated regarding the exception type. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Lukáš Doktor 提交于
We'll need to pass those information to other functions, let's bundle them to make the code clearer. (keep using "path" internally as accessing local variable is faster) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The "test_import" and "mod_import" are not really necessary as we store "test_import_name" and "mod_import_name", which can never be empty string. Let's depend solely on names. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The build directory of the main Avocado module is already cleaned by the `clean` rule, but when plugins contain a build directory, they are not currently cleaned. Sometimes this leads to annoying `inspekt` failures, because previous different versions of the plugin may be in the build directory, and the error message only mentions the name of the module/class/method violating the check, but not the exact file name. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Besides enabling the check, this change also makes ISO9660PyCDLib inherit from MixInMntDirMount so it has the implementation of mount_dir() property. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
The W0223 pylint check warns about any abstract method which is not implemented by subclasses. Currently this warning are being raised for VMImageHtmlParser (Python 3.7). However it seems it happens because an open Python bug[1] about HtmlParser not implementing the error() abstract method of (inner) superclass _markupase.ParserBase(). To enable avocado project checks for cases like that, this change disables the related check only for the specific case. [1] - https://bugs.python.org/issue31844Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 06 9月, 2018 2 次提交
-
-
由 Praveen K Pandey 提交于
added utility which return modules directory path of running kernel after this patch >>> from avocado.utils import linux_modules >>> print linux_modules.get_modules_dir() /lib/modules/4.6.4-201.fc23.x86_64/kernel >>> Signed-off-by: NPraveen K Pandey <praveen@linux.vnet.ibm.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 04 9月, 2018 1 次提交
-
-
由 Caio Carrara 提交于
This pylint checks for possible redefining outer names. Some occurrences was preserved with disable flag because they would broke some public api, like method/functions names or parameters. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 01 9月, 2018 3 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
The W0613 check for unnused arguments. The most of the current cases seems legitmate so the proper flag was added in each line so pylint can ignore it. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 31 8月, 2018 1 次提交
-
-
由 Praveen K Pandey 提交于
fixed pep8 issue in script Signed-off-by: NPraveen K Pandey <praveen@linux.vnet.ibm.com>
-
- 30 8月, 2018 1 次提交
-
-
由 Caio Carrara 提交于
This pylint check makes sure the log message is not built in log statement itself, but uses the proper argument from logger to do it lazy. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 29 8月, 2018 5 次提交
-
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
The dependencies for selftests and CI execution was split in two requirements files. It causes issues with libs being in different versions when tests are executed locally and in CI environment. To reduce theses issues and others the changes bellow was done. All dependencies listed in requirements.txt are now specified only in setup.py properly. This way we avoid duplications or missing requirements that are necessary for avocado. It also could be done keeping only requirements.txt file and loading it in setup.py module. However, since avocado-framework have not clear use case of requirements being installed via `pip install requirements.txt`, it's better keep the dependencies only in setup module. It was removed the requirements file only for CI purpose and updates the requirements for selftest. This way we can have proper dependencies installed when run selftests both in local or CI environements. The requirements-selftest was updated: Setuptools was removed since it's already a dependency from avocado itself. Pep8 was removes since it's already a dependecy from inspektor. Since we run lint checks by inspektor it's better let it manage de pep8 (or pycodestyle) dependency Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
First of all, a disclaimer: this is hackish. But, it's the simplest and thus best fix I could think of. What happens here is that this module makes no distintcion between what is a base class "abstract" class, and a concrete class. With the goal of reducing code duplication, a goal that will remain valid here and in other modules, it made sense to create a common Fedora class. Now, because only being a ImageProviderBase suffices, the FedoraImageProviderBase class, which is not intended to be used as a concrete (final) class, is being carried along and its "name" is checked, causing crashes. This introduces the ad-hoc, hackish, notion, that a concrete ImageProvider is one that contains a name. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-