- 19 9月, 2018 3 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 18 9月, 2018 13 次提交
-
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Just a simple style fix and adding a missing docstring. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Instead of executing `lsmod`, the same information is available in /proc/modules. Also, add test to that function. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The same checks are performed repeated times. Let's remove those. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since there are three possible states for a module, this fits well in the Enum type. Let's use that, and add compatibility definitions for the time being. Reference: https://trello.com/c/BMC7yFbXSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This simply moves the recent_mock() function to a common location so that it can be used by other test modules. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
I tend to favor more predictable and standard behavior, and the currently used approach to "protect" the import of Python standard libraries seems to me to be far from standard. With this change, if the system's Python interpreter is broken, or if Python standard libraries can not be imported/loaded, the default behavior will be executed. If it seems to be an Avocado problem, then we try to print a line describing that. 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>
-
由 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 2 次提交
-
-
由 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>
-