- 21 8月, 2018 7 次提交
-
-
由 Cleber Rosa 提交于
This method allows the creation of files inside a newly created ISO file. For now, the API is kept as simple as possible, and as such, there are limitations involving creating directories (and files in other directories than the root dir), mode for files, etc. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This method allows the creation of brand new ISO files, written to disk at close() time. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The goal is to make the opening of files separate from the instantiation, because that will allow for the different "open" approach of opening a new ISO file in write mode. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
So that users of the `iso9660` utility function can choose a backend that matches specific requirements. This is intended to be used to add create/write features to some backends, that will allow the creation of ISO files, without mandating all backends to be implement those. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
The tests was done mocking the real output of `/proc/buddyinfo`. To make it easier the process to get the buddy info content was extracted for a specific function that actually only wraps the open call. This way we can mock this function return only instead of try mock the builtin open function. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 18 8月, 2018 4 次提交
-
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
PyYAML is the first failure on Travis' Python Nightly jobs. The version we're using is ancient, dating from Mar 27, 2014. Let's update that and see how the nightly job goes. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The standard library platform.dist function has been deprecated since 2.6, and has now been removed in 3.8. Since we used as mostly a fallback probe (other more specific ones are present), it seems safe to remove this one, and probably wiser to remove it "sooner" than "even later". Reference: https://trello.com/c/f2g8BUSt Reference: https://docs.python.org/2/library/platform.html#platform.distSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
- 17 8月, 2018 2 次提交
-
-
由 Caio Carrara 提交于
Reference: https://trello.com/c/Ohh7Q6qjSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
There was an else on while without break. That has no meaning because since while has no break, the else block will be always executed. This change removes the else statement and keeps the block. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 16 8月, 2018 3 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
Reference: https://trello.com/c/Ohh7Q6qjSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 15 8月, 2018 7 次提交
-
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
This started as a hunt for "foo" doesn't exist in module "bar" errors in "inspekt lint" checks. It looks like it fixes those issues, but even if it doesn't, it's a valid change in itself. 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 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
Sometimes the URL used is a link to the content that gets updated between jobs. When comparing jobs, it's unclear if we're downloading the same file or another one. Let's print the available information we have, such as the content length, and the creation/modification dates. Reference: https://trello.com/c/wQ8ir7xASigned-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 14 8月, 2018 12 次提交
-
-
由 Cleber Rosa 提交于
Which is used for the (usually temporary) snapshot image. By default, it's kept in the on the same directory as the base image. When downloading the base image into a test's cache_dir, it makes sense to keep the snapshot out of the cache_dir, usually in the test's workdir. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This check is based on a number of packages that are either Python 2 only and/or are not available on most distros. And, pylint itself supports this type of check. Reference: https://trello.com/c/rfSAXdyiSigned-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Cleber Rosa 提交于
There's some duplicated code dealing with the lzma module presence and consequently lzma handling capabilities on avocado.utils.archive. Also, it makes a lot more sense to have that functionality there. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Sometimes multiple links to the same OS image file version will exist on an index web page. For instance, on openSUSE download server, a folder icon, and the name of the version itself, appear side by side and point to the same version: Name Last Modified Size Metadata [parent_icon] Parent Directory - [folder_icon] Leap_15.0/ 08-Feb-2018 - ... Let's make the set of found patterns unique, and not one per link. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Unfortunately, the vmimage module doesn't have any unittests, so the compatibility with Python 3 has not been tested. Let's fix the obvious compatiblity issues and add the most simple test possible to at least load the utility module on Python 3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
While the readability aspect is debatable, this is IMO easier to grasp than a multiline condition. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Let's give a little more info, and split the parameter type into its own docstring line. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Another simple refactor, because it makes sense to have related attributes set together instead of scattered all over the place. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Let's move the logging map definitions to a class scope, and simplify the setting of the loglevel attribute. In theory, even though it's not supported now, this should also allow code that define their own jobs to easily customize the logging level. 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 8月, 2018 3 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
When `make develop` is run egg-info directories are created. We shouldn't add them to version control, so this commit adds the proper entry to gitignore file. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
由 Caio Carrara 提交于
E1111 error happens when a function which doesn't return is used to assign to something. In this particular case the unittest.TextTestResut stopTest method doesn't return and its result is being assigned to a variable. This behaviour makes pylint fails with E1111 error. This commit just don't assign the result of super() call and also keeps the super class method behavior (not returing). Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-
- 12 8月, 2018 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Caio Carrara 提交于
Python 3.7 introduced a new way to add breakpoint on the code. It was added the built-in breackpoint function. There was couple of places where the word breakpoint was being redefined making pylint execution fail with W0622 error (Redefining built-in). This commit replaces 'breakpoint' with 'break_point' in these places. Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
-