- 09 6月, 2015 38 次提交
-
-
由 Cleber Rosa 提交于
There's no current use case for direct use of the multiplexer APIs from test code, so let's move that to avocado.core. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
It looks like there's no need for the logging configuration and the application of that configuration to live under avocado main module, so let's move it to avocado.core.log. Also, there also seems to be no need for the configuration to be applied at the main module import time. Since when the avocado command line test runner is run and also when a test is run "directly" results in instantiating an avocado.core.app.AvocadoApp object, this looks like the best place for the logging configuration to actually be performed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Even though aexpect is possibly a good candidate for the avocado.utils namespace, there are plans to actually move it into a standalone Python project/module. So, since no tests are currently using the module directly, let's move to avocado.core. It can not be removed at this point because the avocado-virt extension uses it. A PR is being sent to avocado-virt to sync with this change. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The initial idea about the avocado.restclient namespace was that eventually users could write scripts using that as an API to interact with avocado-server using Python code. While the idea is still valid, the avocado-server interface is a simple and standards compliant RESTful interface. Thus, users can still easily interact with it without us having to support a formal Python API at this point. In the future, if need arises, we can improve the Python REST client API and promote it to a public namespace. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
avocado.utils.software_manager: Check if yum module is present
-
由 Rudá Moura 提交于
When using the software_manager component on a Red Hat like distro, if the yum module for Python is not installed, log the information as an error message and use the basic support from rpm/yum. Why this? If the module yum is not installed (for example, in a virtualenv), the software_manager component will not traceback when creating an instance of YumBackend and only the method provides() will be disabled. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Documentation Review (2nd round) - (v2)
-
由 Cleber Rosa 提交于
The text means that Avocado is made of the test runner, libs, etc. So, that should really be written as "composed of" instead of "composed by". Just to be extra clear, Avocado is "composed by" the Avocado Development Team. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The reference documentation now contains a section on the libraries and APIs, giving information on where those can be found in the `avocado` namespace, and their respective API stability promises. Then, instead of giving too much information about it in the introductory section, let's just link to the reference section if the user wants to know more about it. Changes from v1: * Fix typo spotted by Lucas (s/will/you). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
APIs are the interfaces that our libraries provide. So where we actually want to talk about the full set of value that we provide to test users, let's use the term libraries. And use APIs when it makes more sense to do so. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
First, the wording was not clear about the language choices and the added benefits of using Python. Also, let's focus on using the term libraries instead of APIs. Libraries are an important part of Avocado (see definition of what Avocado is) and IMHO denote more value than the term APIs does. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
And not *on* a given language. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Documentation Review (v2)
-
由 Lucas Meneghel Rodrigues 提交于
Makefile: require a clean source tree before running local checks
-
由 Cleber Rosa 提交于
This is just a review followed by minor wording changes and some heavier formatting changes. Changes from v1: * Wording changes suggested by Lucas. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
After reading the text and shuffling the order a bit, I think this has an easier to follow structure. A few highlights: * An Avocado test is really a method, that is, for many methods we have many tests. * Suppress the attempt to briefly explain the Multiplexer here, giving instead a link to a more complete documentation. Changes from v1: * Mention the function naming conventions for the test methods and link to PEP 8 relevant section for functions and classes. * Break into finer grained sections. Signed-off-by: NCleber Rosa <crosa@redhat.com> [fixup] docs: simplify Writing Avocado Test section text Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The idea is to remove everything that is not critical to the user's understanding of the core concepts. Also, to sync to the new multi-test in a single class capabilities of Avocado, let's name the main test method `test`. This paves the way for other (multi test) examples that name test methods with the exact same prefix (test_foo, test_bar and so on). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This includes moving the reference text and diagram on test order resolution to the Reference Guide. Since this also included information on what are simple and instrumented tests, let's merge and reuse that. Also, let's rename "Simple example" to "Basic example" so that it does not confuse users with the concept of a Simple Test, since this example is actually an Instrumented Test. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This commit tries to reduce the learning curve for a new Avocado user. * The sections were broken down with new levels * Reduce text by using links if users want more information on a topic * Introduced a Reference Guide, where these more detailed and often design/internals about Avocado will be documented. * Default the usage examples assuming an installation based on packages * A lot of wording changes, always intending to make it simpler Changes from v1: * Wording changes suggested by Lucas. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
First, let's assume these docs are intended for users by renaming the first section simply "Installing Avocado". I tried to make the "Installing Avocado" introductory text shorter, so that it's easier to read, and if the user really wants to take a look at the repos he/she can click on the links. Also broke down the installation section into more sub levels. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This makes it even more clear that this feature is about a command line option and can work with unmodified tests. Also, the user reading this will at least know that some other options are available, and will probably refer back to `--help` if he needs further assistance. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Two sentences in the usage string of the --gdb-pre-run-commands command line option lacked a white space between them, making it difficult on the user to quickly read it and grasp it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since the command line (aka transparent execution of binaries) use case is easier to grasp and probably will see more frequent use then the API, let's present that first. Also, standardize on the feature names, fix some typos and add a little bit more of cross reference. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Like a git commit message, let's try to be really succient about the first line a user will read about avocado. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since Avocado in our context is a proper name, and not really just some fruit, let's refer to it using a capitalized word. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Sure, sphix gave us a hand with the generation of the index file to point us to the right direction. But, by now, we don't have to keep that old tip. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
For completeness purporses this adds the current year to the copyright string. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
As it was done in the man pages a while ago, it's probably better to just refer to the Avocado Team as the author of the documentation as a whole. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Sometimes the local checks, including documentation builds and other unit and functional tests will fail because of either stale state or because of external plugins. Let's require a clean source tree before running local checks to avoid those false negatives. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
avocado config: Add --paginator to command
-
由 Rudá Moura 提交于
API Review (2nd round) - Reviewed Bits - v3
-
由 Cleber Rosa 提交于
And while doing that, also remove avocado.linux for good, since no one else lives there. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
And while doing that, also change the import style on sysinfo.py so that it matches the most common style in our tree, that is, individual utility modules instead of the whole utils module. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since this class is defined on the same module, let's use a relative reference to it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This exception is only raised by avocado.utils.process itself (and by avocado.utils.remote which mimics the the first). Also, since avocado.utils should not use anything from avocado.core, it should be moved anyway. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This is a utility module with no dependency on any other Avocado module, so a good candidate for the utils namespace. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Only avocado.Test is of general interest to test writers. For that reason the entire test module has been moved to the avocado.core namespace. The recommended way to go about writing instrumented tests is something like: from avocado import Test class MyTest(Test): def test_foo(self): do_stuff() Changes from v2: * Fixed references in docstrings * Fixed refrences of avocado.test in Writing Test Guide docs Changes from v1: * Fixed comment typo on commit message * Fixed old reference of avocado.test (then test.Test) instead of avocado then Test in GDB docs. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 06 6月, 2015 2 次提交
-
-
由 Cleber Rosa 提交于
-
由 Lucas Meneghel Rodrigues 提交于
This way we work similarly as to when we develop avocado-virt, which is in fact very convenient. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-