- 02 4月, 2014 3 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
If we have an error at test setup stage, avocado will completely crash. This happens because the setup() method is not properly wrapped inside the avocado execution loop. So, trust exception handling to the job level, putting all test executions under a single try/except block with appropriate status and test attribute handling. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Add support for Test Results report.
-
由 Lucas Meneghel Rodrigues 提交于
Add option -v | --version to the application.
-
- 28 3月, 2014 2 次提交
-
-
由 Rudá Moura 提交于
Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
由 Rudá Moura 提交于
Actually pass parameter for version when calling ArgumentParser, so we're leaving -V for --verbose. Plus: simplify code for utils.unique(). Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
- 26 3月, 2014 10 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Self runnable tests
-
由 Lucas Meneghel Rodrigues 提交于
Introduce the job.main() entry point in all avocado test modules. This way all of them can be executed. The functionality depends on having avocado installed system wide, though. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
As it is not necessary in avocado anymore. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
A Job is a sequence of operations executed on a machine. This patch implements the class, which is a refactor of the test run function, and a class that implements a convenience found in python unittests: the main() method. This allows test modules to be executable in stand alone mode, without the need of the avocado test runner. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
So that we can make avocado test modules self runnable. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Add support for loading external plugins.
-
- 25 3月, 2014 2 次提交
-
-
由 Rudá Moura 提交于
Create new option --plugins to pass a directory for loading external plugins. Also, add some plugins examples in examples/avocado_example_plugins.py. The external plugins are loaded from avocado_*.py modules and the plugins are subclasses of Plugin(). Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
由 Rudá Moura 提交于
Also, app.run() now returns an exit code -- requires further udpates to pass the exit code back from plugins. To load external plugins: p = MyPlugin() app = avocado.cli.app.AvocadoApp(external_plugins=[p]) app.run() and here's a MyPlugin example: import sys import avocado from avocado.plugins import plugin class MyPlugin(plugin.Plugin): def configure(self, parser): myparser = parser.add_parser('hello', help='Hello World!') myparser.set_defaults(func=self.hello) self.enabled = True def hello(self, args): print 'Hello World!', args And how to execute: python myplugin.py hello Hello World! Namespace(func=<bound method MyPlugin.hello of <__main__.MyPlugin object at 0x1574f90>>, log_level='', logdir='', verbose=False) Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
- 21 3月, 2014 2 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 15 3月, 2014 2 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Ignore files from git and fix script name in setup.py.
-
由 Lucas Meneghel Rodrigues 提交于
Make sysinfo into a runner Plugin.
-
- 14 3月, 2014 7 次提交
-
-
由 Rudá Moura 提交于
Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
由 Rudá Moura 提交于
Make sysinfo into a runner Plugin, rename application from AvocadoRunnerApp to AvocadoApp, due all options are now implemented as plugins and Avocado is now a core application. Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Basic structure for plugins.
-
由 Rudá Moura 提交于
Signed-off-by: NRuda Moura <rmoura@redhat.com>
-
- 13 3月, 2014 10 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Fill logs with better information for dropin tests, such as return code, stdout, stderr, duration, among others. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Dropin tests are executables with no knowledge of avocado whatsoever, they only return 0 (PASS) or !=0 (FAIL). They can be executed with the test runner so output and sysinfo can be captured, creating another utility for the runner script. scripts/avocado run "mytest.sh failtest.sh" DEBUG LOG: /home/lmr/Code/avocado/logs/run-2014-03-13-00.12.20/debug.log TOTAL TESTS: 2 (1/2) mytest.1: PASS (0.00 s) (2/2) failtest.1: FAIL (0.00 s) Where $ cat mytest.sh #!/bin/bash true $ cat failtest.sh #!/bin/bash false Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
-
由 Lucas Meneghel Rodrigues 提交于
We'll start with a different convention than the one used in autotest: We'll have a separate unittests/ directory with unittests, and those will load the avocado libraries using simple import tricks (no common.py). This first version of the sysinfo unittest only exercises the Loggable classes and their comparison methods. More is to come (hopefully). Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Leave only avocado.app and avocado.test loggers, the former for console output, and the later, for test and job logs. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
-
由 Lucas Meneghel Rodrigues 提交于
-
由 Lucas Meneghel Rodrigues 提交于
Rename Bcolors to TerminalColors, and add new methods that will already yield common strings ready for exibition: 1 - A colored header string 2 - Colored PASS, FAIL, ERROR, SKIP strings Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
-
- 12 3月, 2014 2 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-