- 22 12月, 2017 1 次提交
-
-
由 Cleber Rosa 提交于
Which is the preferred way of saying that a parameter is a file, and, makes pylint happy on Python 3. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 24 8月, 2017 2 次提交
-
-
由 Cleber Rosa 提交于
These scripts rely on some Python library path manipulation to be able to load from the source tree. But, in fact that are a few reasons for not having those, including: * All functionality in `avocado` relies on plugins, which will not be available from the source tree unless a `$ setup.py develop` is executed, which automatically makes the "import magic" unnecessary. * Most users will end up using a setuptools generated "entry point" instead. For the sake of less code, I propose this (and all other?) magic to be removed. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Simple syntatic fix removing one of the (duplicate) conditional `__name__ == '__main__'` section. To preserve the functionality of the exception hook (`handle_exception`) the import of Avocado libraries are moved closed to their usage (inside the condition `__main__` block). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 07 11月, 2016 1 次提交
-
-
由 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 10月, 2016 1 次提交
-
-
由 Wei Jiangang 提交于
There's a missing space at the end of the line, that is, let's replace "datato" with "data to". Signed-off-by: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
-
- 13 8月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
Usually we want to include all the commits of related projects to the report. Let's add a convenient way to list all siblings HEAD shas. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 24 2月, 2016 2 次提交
-
-
由 Cleber Rosa 提交于
Python 3 is more strict about I/O to files not openend in text mode. Let's encode the message in utf-8 and have bytes written to the traceback log file. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Avoid unnecessary complexity of quering for enabled logs and only support os.environ to show the full traceback. Additionally avoid problems with redirected sys.stderr by writing directly to fd 2, which is STDERR. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 10 12月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
Some distributions mount /tmp as tmpfs, which does not implement all usual filesystem functions, like O_DIRECT flag. This causes problems for some tests. Let's check if the user already set TMP in environment and if not, try to use /var/tmp by default. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 04 11月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
- 03 11月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
In case of uncaught exception exception store the exception info and notify the user about the fatal crash, instead of default traceback. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 08 10月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
This is an automated mass import cleanup across all avocado source files: 1) Imports follow the order: * Standard library imports * Non standard library external imports * Internal imports All separated by a single line 2) One line between imports and the rest of the code 3) Remove unused imports in the process Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 07 7月, 2015 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Handle Ctrl+C while executing the test plan more cleanly. Also, make each code path executed by app.run() return either 0 on success or 1 on failure, so that we get proper exit codes for the script. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 12 5月, 2015 1 次提交
-
-
由 Rudá Moura 提交于
Move avocado.restclient.cli to avocado.core.restclient.cli, related to `avocado-rest-client` script. Users can make use of `avocado.restclient.connection` and `avocado.restclient.response`. These are very lightweight and intended to let users query and manipulate avocado-server data without starting from scratch. Signed-off-by: NCleber Rosa <crosa@redhat.com> Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 22 4月, 2015 1 次提交
-
-
由 Rudá Moura 提交于
Move avocado.cli.app and avocado.cli.parser to avocado.core, in conformance to our purpose of keep things not related to test developers, inside avocado.core. Now the package avocado.cli is gone. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 21 4月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
The description might contain valuable information. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 31 3月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
We need to execute avocado in simpletests, thus we need both, libexec and scripts directories inside PATH. Signed-off-by: NLukáš Doktor <ldoktor@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>
-
- 27 2月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
Introduce a new command line application that is designed to interact with avocado-server. Changes from v1: * Fixed reference in the docstrings to arcli (from arc) * Release number bump on spec file * Add missing avocado.restclient.cli.actions module to setup.py Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 25 2月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
Some test routines can not yet be easily automated in Avocado, and for those, we rather test things manually then not at all. The idea behind this tool is to use a predefined test plan (a simple JSON file) that has test names and descriptions with how to perform the test and what to expect. The tool will ask for the results for each test (either PASS, FAIL or SKIP) and possibly additional notes. These results will then be saved to a JSON file or to a human readable report. The human readable report can, for instance, be part of a release commit message, or if preferred, the JSON result file can be committed to keep track of what is working and what is known to be broken at a given time. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 31 1月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
OK, I did it. This has got to be the most stupid commit ever on this repo. Still, "print 'foo'" annoys me, and if want to have Avocado running on Python 3 anytime, we would have to do this anyway. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 03 9月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
It is not necessary to internally import the libraries like we've been doing so far. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 01 5月, 2014 1 次提交
-
-
由 Cleber Rosa 提交于
A command line utility that can read a test journal (when the test is run using '--journal' (and thus the journal plugin), and can send all the test activities recorded to a central Avocado Server. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 10 4月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Use the new inspektor functionality (with a few manual tweaks later) to add copyright headers into each avocado file. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 25 3月, 2014 1 次提交
-
-
由 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>
-
- 14 3月, 2014 1 次提交
-
-
由 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>
-
- 08 3月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 07 3月, 2014 1 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 06 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>
-