- 18 2月, 2016 2 次提交
-
-
由 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>
-
- 16 2月, 2016 10 次提交
-
-
由 Amador Pahim 提交于
Move remote/vm result functionality to runners [v1]
-
由 Amador Pahim 提交于
avocado.core.html: Add extensive debug on UnicodeDecodeError
-
由 Amador Pahim 提交于
Two bugfixes regarding the testplan
-
由 Lukáš Doktor 提交于
Currently we store job urls in job.urls, while letting people override them in "job.run()". This is unnecessary and IMO wrong. Let's simply set the "job.urls" in "job.__init__()" and use them throughout the whole workflow. This requires very minor change in standalone tests, everything else works as before. Additionally we don't need the "preprocess_urls" which was not actually used. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
The functionality to run tests on remote machines and on VMs are implemented using a mixture of TestRunner and TestResult classes. In all fairness, it looks like the TestResult classes were abused because non-standard attributes were used as a foundation for that functionality. Now that `setup` and `tear_down` have been added to the TestRunner interface, let's move those custom features from the TestResult classes to the TestRunner ones. Signed-off-by: NCleber Rosa <crosa@redhat.com> Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Some users are getting UnicodeDecodeError, but we're unable to reproduce it. This commit lists the full template and repr() of the failure so we can at least see what was rendered and identify the source. No one should actually see this message and we should remove it once we identify and fix this problem, but without such extensive debug we can't do anything about it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
The parsed (and possibly processed) list of urls given on the command line is quite useful to other implementation of test runners (see the upcoming changes on the remote/vm runners). So, let's add a proper interface that can be used to customize/sanitize the urls given on the command line, and keep that as a reference in the `urls` attribute. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Instead of getting the application arguments from the test result, let's get them from from job object itself. The idea is that, once fnctionality is moved from the test result class to the test runner class, the same source of arguments can be used for the incoming code. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
We're adding extra functionality to test runners, were they seem to be more appropriate than in the test result classes. Let's add empty implementations on the base class so that their re-implementation is optional on inherited classes. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This implementation of __getattr__ has allowed users of the test result proxy, most importantly the result test runner, to ask for attributes, including important methods, that would only be available on the RemoteTestResult implementation. Things have been working more or less by pure chance, based on the lucky fact that the RemoteTestResult would be at the right place on the proxy `output_plugins`. Let's forbid users of the test result proxy to look for attributes that are not part of the test result "contract" by removing this magical (and rather evil) method. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 15 2月, 2016 2 次提交
-
-
由 Lukáš Doktor 提交于
The "ps" binary is used in avocado.utils.process library. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This unittest patches find_command to return /usr/bin/sudo and then runs it and expects some results. This works only with correctly set sudo, but it does not work without sudo (as the binary is not found) or with incorrectly set sudo. Let's use "/bin/true" instead. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 14 2月, 2016 1 次提交
-
-
由 Amador Pahim 提交于
avocado.core.runner: Support sigtstp to interrupt tests [v3]
-
- 12 2月, 2016 12 次提交
-
-
由 Lukáš Doktor 提交于
Makefile: cleanup Python compiled files properly
-
由 Lukáš Doktor 提交于
When we abort the test and the test ignores SIGTERM, avocado hangs for infinity. Let's wait a while and send SIGKILL. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
One of the clean steps executed prior to the deletion of the 'pyc' files calls `$(PYTHON) setup.py develop --uninstall --user`, which ends up loading modules and creating some of those again. Let's change the order so that the Python compiled files are really gone after a `make clean`. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
-
由 Lukáš Doktor 提交于
Sometimes it's useful for debugging purposes to pause the running test. This is currently hard as tests run as subprocess. This patch adds a special handler for SIGTSTP (ctrl+z) which sends SIGSTOP/SIGCONT to the test process and it's children. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The "kill_process_tree" executes desired kill and then it sends SIGCONT to the pid. In some cases (like sending SIGSTOP) this is undesirable, but on a lot of places the code assumes it sends it. So let's add "send_sigcont=True", which allows one to disable it in his particular case. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently the timeout is obtained from Test.params in runner when early_status is obtained. This might give invalid results as some tests override the `self.params` with other params (avocado-vt). This patch sets the `self.timeout` value instead and uses it in runner to avoid such problems. One can modify this value in Test.__init__ so it should be flexible enough. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently we don't support merging params provided by loader and multiplex variants. The way it worked now was, that loader provided params and they were silently overridden by multiplexer. This patch raises an exception if params already exists (and multiplexer is used). Additionally it removes the "avocado_inject_params" hack. Let's leave it up to the loader to specify params using different keyword and let the test __init__ to handle it properly (demonstrated in avocado-vt pending pull request) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This function is useful, when one executes shell=True commands where he sets values and then executes command. He can use this function to get the actual binary path instead of the first variable=value assignment. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Amador Pahim 提交于
Incremental smoke-check
-
- 11 2月, 2016 2 次提交
-
-
由 Lukáš Doktor 提交于
This target checks very basic function of avocado and is used incrementally in travis to verify this functionality for each commit up to the origin/master. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
-
- 10 2月, 2016 3 次提交
-
-
由 Lukáš Doktor 提交于
Makefile: move the removal of avocado directories to the clean target
-
由 Cleber Rosa 提交于
The check target have a couple of (relevant) directory cleaning up commands that are, IMHO, out of place. Let's move them to the clean target. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
- 09 2月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
Last time it did not work, let's try it again to see whether it works. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 06 2月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
avocado/core/settings.py: simple optimization
-
- 05 2月, 2016 3 次提交
-
-
由 Cleber Rosa 提交于
Reuse the value of "_config_path_intree" to set "_config_path_intree_extra". Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Test result small improvements
-
由 Cleber Rosa 提交于
Avocado defines avocado.core.result.TestResult, so that alternative test result classes can inherit from it. When a user writes a new test result class, he's left wondering how to activate that. First, for consistency, Avocado should define proper interfaces for "test result plugins". This is on sight, and will ultimately allow users to register new test result implementations simply by registering the setuptools entry points, just as it's currently done (on versions >= 0.31.0) for command line related plugins. Until then, let's at least improve the current state of things. These changes believe that the following improvements are given here: * avocado.core.job.Job._set_output_plugins now won't look at every possible key in the application arguments, and won't silence possible errors while trying to instantiate test result classes. * test result writers can now use a documented method for registering their test result classes. The same approach was not chosen to be done with the test runner classes because there can only by one test runner per Avocado job. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-