- 07 11月, 2016 3 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: Pylint fixes
-
由 Lukáš Doktor 提交于
Recent pylint update is more pedantic about module level spacing. There are no changes to code, only couple of extra spaces to make it happy. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 04 11月, 2016 16 次提交
-
-
由 Cleber Rosa 提交于
-
由 Lukáš Doktor 提交于
When running tests remotely, html plugin might be already present. Let's remove the previously existing files to avoid failure and to always get the latest results. NOTE: We might want to re-consider whether to skip the html update, or whether to always update results, but the current status is not optimal. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The joblogdir was added several years ago but it was not defined in remote.test. Let's add it and use the local_job_logdir because this variable is used during start_tests/start_test/end_test/... which could make the local avocado to process files which does not exists or files which does not belong to this job. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Besides the port of the TAP plugin, this makes the Result only consider a test to have run after it finishes The way the Result class has been accounting tests run is a consequence of the implementation detail. Before any tests are actually run, that is, in `start_tests()`, the counter is incremented. This is obviously wrong. The counter should only be incremented at `end_test()`, which is already done. AFAICT, the current approach was working because the subclasses of Result, such as HumanResult, would print the current status on their own `end_test()`, and then only after that they would call the parent (Result) `end_test()`. This, together with the reconcile method, seems to have kept the counters accurate to end users, even when they were not accurate internally. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Even though Avocado already publishes an interface for result plugins (in the avocado.core.plugin_interfaces module), that one is suitable for plugins that will generate one output after the job as a whole finishes. There is another type of use case, already present in Avocado, but still not implemented using the newer plugin mechanism. The use case is result plugins that must respond to events, some that come from the job and some that come from tests. The EventResult interface is a collection of Job interfaces that would happen before tests start running (pre_tests and post_tests) and events that are closer to the test themselves (start_test, test_progress and end_test). The new dispatcher calls plugins that implement the ResultEvents interface. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This is the right place to criticize the test suite. Even though I don't feel it's right to abort the application from within the job class, this prevents the current user experience to break. In the near future, I'd like to see removed, and avocado runs without a test suite to run and give these exact results: no tests were available to be run, so none were executed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
The html plugin can only cope with finished results. Currently this is not problem, because `render` is not called, but following patches adds the possibility to postprocess results in such cases so let's prepare for it. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
A result has a 1:1 relation to a Job. To match one to the other the job `unique_id` is saved to the result as `job_unique_id`. The same way that a job alwayas was a unique_id, the result should never miss the job_unique_id. So, let's not try to hide or postpone errors from such as scenario. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This change introduces what is going to be the only one result instance to a job. Instead of keeping track of the same information on multiple plugins, plugins will refer to the unique job result instance. This changes does not remove the result proxy just yet, because by doing so, the plugins that depend on it would cease to run. Once plugins are ported to use the unique result instance, the result proxy will be removed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Some tests might finish before producing any output, then the runner should reflect that instead of IOError followed by hang because of missing test_state. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: update pydot version call read_dot() from the corresponding module
-
由 Amador Pahim 提交于
Let's update pydot to work with the latest networkx version. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
graphviz drawing tools are no longer imported into the top level namespace of networkx (networkx >= 1.11). This patch changes the read_dot(), using it from the actual module. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 03 11月, 2016 5 次提交
-
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
-
由 Amador Pahim 提交于
Let's include in the `Releasing avocado` guide the steps required to configure Read The Docs every version release. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
We have docs available on Red The Docs for all versions from 36.0 onwards. Let's include in each release notes the link for the version documentation so users can easily see the docs for that version. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: Loader: use symbolic names for discovery test type selection
-
- 02 11月, 2016 10 次提交
-
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
Let's make these symbols available in the documentation, and use them where they're not yet being used. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
Let's give used 1 year os so to prepare for this deprecation. Reference: https://trello.com/c/9scZuNOm/585-get-rid-of-default-paramsSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
This API is being depracated. Let's remove the examples from our docs. Reference: https://trello.com/c/9scZuNOm/585-get-rid-of-default-paramsSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
-
由 Cleber Rosa 提交于
According to the test name RFC, once a test references goes though the resolver, it becomes a test name. When it's set to be run by the runner, and to be recorded in the result, it becomes a test ID. Since the JSON records the result, the `url` key is really misleading, and it should be named `id` (as in test ID). Compatibility has been kept, that is, the key named `url` still exists, and can be removed in a future version. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since we're renaming all of the mentions from URL to Test References, it also makes sense to rename the `jobdata/urls` file to `jobdata/test_references`. As compatibility measures, this tries to read the `urls` file when `test_references` is not available (newer avocado and older jobdata) and also adds a symlink from `test_referneces` to a link called `urls`, when older avocado finds a newer jobdata. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
It's been a while since the "Test ID RFC" came out: https://www.redhat.com/archives/avocado-devel/2016-March/msg00024.html Still, we've been referring to test URLs all around our code and also on user visible strings. This is an attempt to rename the mentions of "URLs" that really should be "test references" or simply "references" at this point. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
-
由 Cleber Rosa 提交于
Creating a test interactively is not entirely a use case we have thought about, AFAICT, but it shouldn't fail because of an implementation detail. The implementation detail, in detail, is that the `filename` property uses inspect to try to locate the file that backs `avocado.core.test.Test` based tests. The proposed change is that, if inspect fails to find the file that backs the test, the tests' `filename` property should resolve to None. In practice, this allows the following snippets to be tried on the Python interpreter: >>> import avocado >>> class Test(avocado.Test): ... def test(self): ... pass >>> t = Test() Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 31 10月, 2016 3 次提交
-
-
由 Amador Pahim 提交于
-
由 Cleber Rosa 提交于
This is a bit of a nasty surprise: the RemoteResult and VMResult serve no purposes at all. By looking at the code it was hard to identify what was going on there. Removing one and then a few attributes changed nothing. Finally, by removing them all no regression was found. It actually makes sense, but it's just a bit scary how this wasn't caught before. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: Functional tests: prevent the persistence of temporary job results
-
- 30 10月, 2016 1 次提交
-
-
由 Cleber Rosa 提交于
Some functional tests, most of which execute a full avocado command, were missing the `--job-results-dir`, pointing to a directory that would be removed after the tests. This has led to the pollution of the standard job results directory (usually `~/avocado/job-results`) when selftests are run. This proposal fixes all but one set of functional tests, which has to be fixed with a different set of changes (see reference). Besides the functional tests, some unittests are also creating job results that should be discarded. It's believed that at least some of this is caused by the relationship between tests and jobs, but this is speculation and it's not attepted to be fixed on this patch. Reference: https://trello.com/c/I2ieqhR5Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 28 10月, 2016 2 次提交
-
-
由 Cleber Rosa 提交于
-
由 Ademar de Souza Reis Jr 提交于
sysinfo: Revert the removed `--quiet` option to journalctl
-