- 25 2月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
All *SkipTests are now inherited from "SkipTest" baseclass. This baseclass contains improved __init__ which removes any unsupported parameters from the Test.__init__ super call. This is because those classes are used to substitute other avocado test classes, for example "avocado-vt" tests which contain "vt_params" argument unsupported by Test.__init__. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 24 2月, 2016 18 次提交
-
-
由 Amador Pahim 提交于
Python 3 partial support [v2]
-
由 Cleber Rosa 提交于
As string.letters is gone on Python 3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Python 3 is more strict about I/O to files not openend in text mode. Let's encode the message in utf-8 and have bytes written to the traceback log file. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
A regex match does not return its length by default, let's use len() on it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The tree/multiplex modules have clear conditionals when the system is not multiplex capable, namely because of the lack of YAML libraries. Let's reflect that on their tests. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The StringIO module now lives under io as io.StringIO on Python 3. Let's deal with both names. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The urlparse module now lives under urllib as urllib.parse on Python 3. Let's deal with both names. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The ConfigParser module is named configparser on Python 3. Let's deal with both names. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This changes the print statements to print functions. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This commit changes the idiom on (hopefully all) except statements, from: except foo, details: to: except foo as details: Which is compatible with both Python 2 and 3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This is a simple compatibility fix that uses hashlib API that is available on both Python 2 and 3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This change introduces symbolic names for various filesystem permission modes, instead of the literal octals with which Python 3 shows no compassion. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This commit ports the, arguably old style code (even enough old to "modern" Python 2 standards) found in the "external" spark and gdbmi parsers. It includes changes such as: * print style (using print "function") * lambda parameter style * dict "has_key" changed to "key in dict" idiom * use of string instances instead of the external string module. This change is intended to make the same code compatible with Python 2 and 3. That is, even when using 2to3, this doesn't get "fixed". Instead of writing a "fixer", let's just make this code be more Pythonic and compatible. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Avocado's setup.py used to not be based on setuptools, but plain distutils. Then, it wasn't possible to use 2to3 when to help with Python 3 automatic adjustments. Since 333e439b it's now based on setuptools so we can enable 2to3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Lukáš Doktor 提交于
Those two are interconnected, let's keep them in one file instead of local imports. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Avoid unnecessary complexity of quering for enabled logs and only support os.environ to show the full traceback. Additionally avoid problems with redirected sys.stderr by writing directly to fd 2, which is STDERR. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This patch changes the way logging is initialized in avocado app: 1. stdout/stderr/logging is replaced with in-memory handlers 2. when arg parsing is done, logging is reconfigured accordingly to setting and re-logs stored messages (when streams are enabled) 3. when job starts and "test" stream is enabled, "" and "avocado.test" streams are enabled 4. when job finishes and "test" stream enabled the additional outputs, the additional outputs are disabled again. The 3 and 4 is necessarily as the "" logger contains all logs including avocado initialization (stevedore, PIL, ...). This way the "test" stream still outputs everything, but only during the job-execution and not during avocado initialization and cleanup. (one can use "early" log to see those). Last but not least it keeps "avocado.app" output in stdout (and stderr), but it moves all other outputs to stderr instead. This is IMO better handling as one can distinguish between debug and "additional" output. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 23 2月, 2016 6 次提交
-
-
由 Lukáš Doktor 提交于
Refactor logging initialization [subset/first round]
-
由 Lukáš Doktor 提交于
No actual changes, only reorder imports alphabetically (system, utils, relative). Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The format_help was used to show "avocado multiplex -h" when incompatible options were used, but it requires the parser to be stored and as this is the only plugin doing this, let's just get rid of it instead fixing the bug. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The function "add_console_handler" is quite useful. This patch extends it's capabilities and renames it to fit the new purpose. Because the new default logging level for "add_log_handler" is INFO, we add the "avocado.test" and root logger to level DEBUG. Then finally a few adjustments to the tests that rely on specific log format and level: 1) selftests/functional/test_multiplex.py: adapt to changes in test logger That means that extra prefixes ('avocado.test') are printed out on each line when avocado is run with '--show-job-log'. While at it, be more precise and check for the specific params at the specific run with the given variant, instead of looking for a given param in the output of the three tests variants. 2) selftests/functional/test_standalone.py: adapt to the change of log prefix ('avocado.test') and extra line because of DEBUG level. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Lets share this log with all debug info in avocado not enabled by default. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The "start_file_logging" is used when job results are created to add job file-handlers to logging. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 20 2月, 2016 2 次提交
-
-
由 Cleber Rosa 提交于
-
由 Lucas Meneghel Rodrigues 提交于
avocado.core.html: Fix the unicode handling for older pystache [v2]
-
- 19 2月, 2016 7 次提交
-
-
由 Lukáš Doktor 提交于
Python 2.6 works fine with both, but let's use the specific version of pystache we support (in html-plugin) but don't test in CI. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The older versions of pystache encodes the result into default encoding (ascii), which causes exceptions when writing the results into utf8 file using codecs. The newer pystache doesn't require this as it already returns unicode. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The sysinfo files can contain non-ascii characters. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This hook is used by older pystache (pystache==0.4.1). We don't use it so let's simply ignore it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The --upgrade forces all mentioned packages into the highest possible version, even though the existing ones match the prescription. Without it the packages that match prescription are kept and only non-matching ones are upgraded. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
We use features of pip-6.0.1 in our requirement files, therefor we depend on pip>=6.0.1. This commit adds this dependency before requirements are processed without "--upgrade". When the user has pip>=6.0.1, nothing happens. When he has older pip it's upgraded. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
avocado.plugins.replay fix crashes when using --replay-test-status [v2]
-
- 18 2月, 2016 3 次提交
-
-
由 Amador Pahim 提交于
Options --multiplex-files and/or urls are incompatible with --replay-test-status, since the resulting variants will differ from the original job. This patch adds a test to fail avocado when those incompatible options are used togheter. Also, some minor fixes in replay messages; and in return code when --remote is used. Reference: https://trello.com/c/OJpRv36iSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Hao Liu 提交于
Managing different requirements files for different python version requires much more efforts when the requirements became too complex. This issue emerged when a required package `stevedore` decide not supporting Python 2.6 since version `1.11.0`. ``` >>> import stevedore Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/stevedore/__init__.py", line 23, in <module> LOG.addHandler(logging.NullHandler()) AttributeError: 'module' object has no attribute 'NullHandler ``` Pip provides a feature named [Environment Markers](https://www.python.org/dev/peps/pep-0496/) for requirements file to include specific packages conditionally which could properly solve this issue. This fix: 1. Use environment markers and merge python version specific requirements files; 2. Remove python version specific requirements files references in `Makefile` and Travis configuration; 3. Use `pip install -r requirements.txt` to replace per-line package installation; 4. Restrain package `stevedore` on Python 2.6 to `1.10.0`. Signed-off-by: NHao Liu <hliu@redhat.com>
-
- 17 2月, 2016 3 次提交
-
-
由 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>
-