- 03 2月, 2015 3 次提交
-
-
由 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>
-
由 Rudá Moura 提交于
* Use --sysinfo=off in the current functional tests. It will drop the total execution time of the tests. * Add a new functional test `sysinfo_tests.py` which will actually test if the sysinfo directory is being created or not, depending on the proper command line option.
-
由 Rudá Moura 提交于
Implement runner command line option `--sysinfo` to turn on or off any reports created and related to the execution of sysinfo, like profilers, command lines utilities and other hardware logs. Default: on. Example: avocado run --sysinfo=off passtest There is a new configuration options inside [sysinfo.collect] named "enabled" which will turn the feature on and off too. It accepts a boolean value and the default is to enable sysinfo. The command line option overwrites the configuration value. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
- 02 2月, 2015 1 次提交
-
-
由 Cleber Rosa 提交于
-
- 01 2月, 2015 1 次提交
-
-
由 Lukáš Doktor 提交于
Each operation (Remote.run) should have timeout to prevent unlimited hangs. I choose default timeout 60s but it can be adjusted. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 31 1月, 2015 3 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
Remove occurences of old `print` statement syntax
-
由 Ademar de Souza Reis Jr 提交于
avocado.plugins.xunit: Add WARN status as PASS
-
由 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>
-
- 30 1月, 2015 4 次提交
-
-
由 Lukáš Doktor 提交于
xunit doesn't support WARN test restul and currently is just ignored. This commit maps WARN test results as PASS. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
This way, we fix a bug of avocado unable to list tests from its own tree (it'll try to import them and then fail due to recursively trying to import the already loaded avocado modules). Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 29 1月, 2015 9 次提交
-
-
由 Ademar de Souza Reis Jr 提交于
Unittests: remove shebangs and license headers
-
由 Cleber Rosa 提交于
Commit 6fa0bfd8 remove license headers from non-essential files, but a couple of them, introduced by yours truly in a later date, still has them. For consistency sake, let's remove from them too. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Self test files used to be executable, but that changed on 143b574c. So, it doesn't make much sense to keep the shebangs + python commands on them. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
avocado/profiler.py: remove module that has been a placeholder
-
由 Cleber Rosa 提交于
The idea of profilers running along a test is a pretty common and desirable feature. But, for avocado, at least for now, we're seing that feature emerging as an extention of the sysinfo module. So, to avoid confusion, let's remove this placeholder module. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Fix Wrapper Patterns
-
由 Rudá Moura 提交于
Use shell glob style (*/datadir, note that you need to escape * when running on shell) to match possible wrap scripts, when using the command line option --wrap <script_script>:<glob_expression>. Example to wrap the execution of binary synctest with ltrace.sh and to wrap everything else with time.sh wrap script, when running the proper synctest.py: ``` avocado run --wrap examples/wrappers/time.sh \ --wrap examples/wrappers/ltrace.sh:\*/synctest \ examples/tests/synctest.py ``` Update the unittests accordingly. Signed-off-by: NRudá Moura <rmoura@redhat.com>
-
由 Rudá Moura 提交于
avocado/sysinfo.py: simple formatting fix for the Command class
-
由 Cleber Rosa 提交于
It looks like there was intention to add the extra parameter that the Command class takes (whether to compress the log file or not), but it wasn't added as a parameter to the string formatting operation. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 27 1月, 2015 7 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
avocado.runner: Remove root logger logging upon timeout
-
由 Lucas Meneghel Rodrigues 提交于
.gitignore: Add .idea directory
-
由 Lucas Meneghel Rodrigues 提交于
Having it here was a mistake caused by commit 5347d8ec causing timeout to be printed to avocado stdout. Let's fix that. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
This is a directory used by PyCharm, one of the IDEs some of the team members are using. Let's add it to .gitignore. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Rudá Moura 提交于
Pre-requesites to test discovery V7
-
由 Lucas Meneghel Rodrigues 提交于
Add the tabular_output() API to avocado.utils.astring. That function allows us to align a matrix (list of strings) properly for output exhibition. This operation is heavily used in informational plugins, such as the list and plugin list plugins. As we generally want tests to come with new APIs, this includes one simple unittest for it. Changes from v1: * Rename from matrix_to_str() to tabular_data(), suggested by rmoura * Added a unittest. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
That method is supposed to print a yellow colored message, not a red colored one. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
- 24 1月, 2015 12 次提交
-
-
由 Cleber Rosa 提交于
-
由 Lucas Meneghel Rodrigues 提交于
Instead of blindly trying to join the tagged name with the test logdir, treat said tagged name in one corner case: 1) When tagged name derives from an absolute path (eg /tmp/mytest.py). This way the leading / can be safely displayed while not causing breakages in avocado. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
Avocado tries hard to not surprise the user, and attempts to preserve the test ID (from the command line test urls) in the test result directory structure. Because of that, we should not keep using a test ID that is a relative path, because too much can go wrong. This patch simply checks if a test ID (from an test url) starts with a "parent dir" symbol (..), and if so, changes it to an absolute path. Detailed explanation on how this is currently broken follows: At TestLoader.discover_test() (from loader.py), a test name is derived from a test ID: test_name = params.get('id') The test class itself, along with test parameters (including `id`) are produced and returned by TestLoader._make_test(). The test class is then instantiated with these parameters, and a "tagged name" is constructed by Test.get_tagged_name(). This tagged name is then used to construct the log directories and files: self.logdir = path.init_dir(base_logdir, self.tagged_name) io.set_log_file_dir(self.logdir) self.logfile = os.path.join(self.logdir, 'debug.log') This will try to create directories completely outside of what was intended, and can even crash if there's no permission to do so, resulting in the avocado test runner waiting for the test "early state" forever. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
The moment where we load the test in avocado is critical, since it happens on a subprocess, a failure there is opaque to the user, and the test early state never gets populated, which makes avocado hang forever. Handle this case better, and print an exception right away to the user. Changes from v1: * Improved error message, per Cleber's comments. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
docs: Specify that avocado test class names are arbitrary
-
由 Lucas Meneghel Rodrigues 提交于
Refactor the test code and create a library containing stack trace related utilities for avocado. They'll be useful in a later patch, that improves visibility of errors in the test loading stage. Changes from v1: * Changed module name from tb to stacktrace, per rmoura's suggestion. Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
plugins.remote: Improve json parsing
-
由 Cleber Rosa 提交于
-
由 Rudá Moura 提交于
avocado: Add another branch in test detection heuristics
-