- 14 8月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Change docs to show an output that reflects the current state of avocado. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 28 7月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Instead of putting outputs on separate lines, condensate test results summary into a single line. The new output looks like: $ avocado run passtest JOB ID : f2f5060440bd57cba646c1f223ec8c40d03f539b JOB LOG : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/job.log JOB HTML : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/html/results.html TESTS : 1 (1/1) passtest.py:PassTest.test: PASS (0.00 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 TIME : 0.00 s We updated a few unittests in order to not depend on the looks of the human output anymore, since unless we are specifically testing for human output behavior, the unittests should use machine readable output. Also, the documentation was updated to reflect the new output layout. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 07 7月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Explain that skip() can only be called from inside setUp(), and tell the expected avocado behavior when writers don't follow that rule. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 24 6月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
Avocado currently has 3 very distinct namespaces boundaries: test API, utils, and core. Let's create 3 separate sections so that users know which one(s) they could use for a given task. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 23 6月, 2015 4 次提交
-
-
由 Cleber Rosa 提交于
This doesn't seem to be the best place for this piece of information. Let's remove it for now, and it may (or may not) have a place somewhere else. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
At its core, what's really important to get accross is that an Avocado test is compatible with unittest.TestCase, and it can be run with compatible test runners. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
We don't implement all of unittest, but rather inherit from the TestCase class. Let's also fix the references to the assert* methods. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The given example was using the old test module/class. Also, for clarity sake, let's add the "new" import style for the Avocado Test class. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 15 6月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
--mux-entry was a bit confusing as what it does it splits the result params into multiple slices and while quering for keys they are evaluated in the specified order, thus behaving the same as Linux PATH bash variable. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 10 6月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
Pretty obvious typo with an extra "d". Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 09 6月, 2015 5 次提交
-
-
由 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 提交于
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 提交于
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>
-
- 02 6月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
This patch changes the default mux-entry to `/run` as it tends to be more convenient. The biggest change is that this location is used as default location for added YAML files. It's also used as the base when using relative path YAML file injection. The only way to include file into the exact location is to use absolute path (`/your/location`). The benefit is that single simple YAML file doesn't require any additional location and is in the default mux-entry location. Check the documentation for details. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 20 5月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
We forgot to update all places where the params API was referenced, leaving us with old constructs in code samples, such as referring to a params key by self.params.key. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 16 5月, 2015 2 次提交
-
-
由 Lukáš Doktor 提交于
This patch adds documentation of the "new params API" and removes the compatility layer. From now on only the API with paths is valid: self.params.get(key, path='*', default=None) where the default path '*' matches anything from --mux-entry path. Default path is `/test`. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This patch modifies all example tests to use the new API. It uses the default path, which is `*`, which matches the mux-entry paths ONLY. In order to get the values it's necessarily to inject the YAML files into the mux-entry path, by default `/test`, eg: avocado run sleeptest -m /test:examples/tests/sleeptest.py.data/ sleeptest.yaml It might seen as a bit more complicated to execute, but it's definitely easier for maintaining and combining existing YAML files. To execute matrix of tests you simply inject them into 2 different `/test` children, eg: `-m /test/by_length:lengths.yaml /test/by_method:methods.yaml`. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 24 4月, 2015 2 次提交
-
-
由 Rudá Moura 提交于
Export avocado.core.job.main as avocado.main, so that make it look like an API for test developers to use. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
由 Rudá Moura 提交于
Move avocado.job to avocado.core.job, in conformance to our purpose of keeping things not related to test developers, inside avocado.core, isolated from users. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 10 4月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
The default UI has changed a bit, so let's update the documentation to match it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 08 4月, 2015 1 次提交
-
-
由 Rudá Moura 提交于
Remove words for setup, cleanup and action and update to the new slang: setUp, tearDown and runTest. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 25 3月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
This patch is initial support for people using custom bash scripts with avocado. Tests should use: PATH=$(avocado "exec-path"):$PATH and then they can utilize the helpers. This version contain functions to write to Test.log the same way it's possible from python including failing the test with TestWarn in case avocado_warn was used. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 20 3月, 2015 1 次提交
-
-
由 Rudá Moura 提交于
From the current command line `--disable-output-check` replace it with the new command line `--output-check {on,off}`, defaults to `on`. Use `--output-check=off` to behave like ``--disable-output-check`. Also, validate the value from command line `--output-check-record`. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 26 2月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
This patch simplifies the concept of WARN test. In case user uses the self.log.warn or self.log.warning methods, test is marked as dirty and in case everything else worked fine it finishes with TestWarn exception. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 03 2月, 2015 1 次提交
-
-
由 Rudá Moura 提交于
Add support to inspect and find tests inside a directory, recursively, by using the method `discover_url`. It takes a url (path) and returns the tests parameters it discovers. The loader object has the .discover() method, that can be used to inspect the location, and the .validate() method, that will discover any problems on the user's input. We are also changing the behavior of avocado to error out on invalid inputs (missing paths or files that are not avocado tests). Therefore, the concept of MISSING or NOT_A_TEST both disappear from the UI. Unittests were updated to reflect the new status quo. Signed-off-by: NRudá Moura <rmoura@redhat.com> Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 23 1月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Explain to the user that the class name for their avocado test is arbitrary (that's actually a recent change, see 6674048d). Also advise them to stick with CamelCase, just for style purposes. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 22 1月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Explain to the user how avocado resolves a path and decides whether it is a test, and what kind of test it is. Use a diagram to clarify the decision process used. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 16 12月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Currently avocado uses /var/tmp/avocado as the default location for the avocado tmp dir. This is a bug from the security standpoint, since a malicious user could create a /var/tmp/avocado symlink pointing to an important directory of the system. So, instead of using /var/tmp/avocado, remove the ability to configure the base tmp directory (other than the traditional $TMPDIR environment variable), and make the data_dir.get_tmp_dir() API to return a safe, non predictable temporary directory. Recommended reading: https://kurt.seifried.org/2012/03/14/creating-temporary-files-securely/ http://www.linuxsecurity.com/content/view/115462/151/Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 15 12月, 2014 3 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
This reverts commit 954ebf4d, reversing changes made to 16627559.
-
由 Lucas Meneghel Rodrigues 提交于
This probably won't work for multi-users and/or if /var/tmp/avocado exists before avocado is run for the first time (with different permissions from a different user). It's also probably a security issue: a malicious user could create a /var/tmp/avocado symlink pointing to /home/someone/important-dir. This patch removes references to /var/tmp/avocado, fixing this important security bug. Recommended reading: https://kurt.seifried.org/2012/03/14/creating-temporary-files-securely/ http://www.linuxsecurity.com/content/view/115462/151/Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Instead of leaving our own users in doc references, replace /home/$USER to simply $HOME. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 11 12月, 2014 1 次提交
-
-
由 Rudá Moura 提交于
Due the concept of "drop-in" tests didn't match the actual purpose of running any script or binary as a test in Avocado, we're going to use the term "simple test" (defined in SimpleTest class) to contrast with "native test", which are Python modules that uses Avocado's API. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 04 12月, 2014 1 次提交
-
-
由 Lukáš Doktor 提交于
This patch injects all params as env variables to DropinTests. This is very useful for multiplexing these tests. Additionally the env_variables.sh example test was adjusted to print CUSTOM_VARIABLE, which can be used in selftest. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 08 10月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 02 10月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 01 10月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
-
- 30 9月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Updates the docs with all behavior changes and comments on text structure/phrasing. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 26 9月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-