- 16 2月, 2016 5 次提交
-
-
由 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>
-
由 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>
-
- 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 6 次提交
-
-
由 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>
-
由 Cleber Rosa 提交于
This is really intended to be the same for all instances of a given class. Every other (xunit, json, journal, html) result class already does it like that. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
The code for executing binary is the same for booth, let's require self._command to contain the binary and merge the code to avoid future diversion. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Amador Pahim 提交于
avocado.core.runner: Force methodName on replay_map substitution
-
- 04 2月, 2016 9 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
avocado.utils.software_manager: Bugfixes and cleanups
-
由 Lucas Meneghel Rodrigues 提交于
Test namespace cleanup [3rd round]
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
tempfile.mktemp is insecure. Let's use NamedTemporaryFile instead and leave the cleanup on failure on python. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The cfgparser converts arguments internally. If we supply integer, it raises TypeError when it tires to read it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
There is an issue when running SIMPLE tests with non absolute paths, example: $ echo "#!/bin/bash" > /tmp/test.sh $ echo "exit 0" >> /tmp/test.sh $ chmod +x /tmp/test.sh $ cd /tmp $ avocado run test.sh The previous work on the simple test runner, adding the filename property, actually fixes that bug, so let's add a functional test to avoid an regression. Reference: https://trello.com/c/nbhyILO0Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Run commands that require admin privileges with 'sudo' [2]
-
由 Cleber Rosa 提交于
Test and SimpleTest now have a filename property, so no need to keep the same information in the path attribute. Also, path is being abused by ExternalRunnerTest. Let's implement a proper filename attribute (one that returns None, since it may not be backed by a file), and use a custom attribute to hold the command name that will be executed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
When there's no filename (test not backed by a file), there's no basedir and then also no expected stdout/stderr files. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-