- 14 10月, 2016 1 次提交
-
-
由 Cleber Rosa 提交于
-
- 13 10月, 2016 8 次提交
-
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: Result: remove old reference to output Result: change the name of the attribute to better identify the proxy Result: do not keep track of all of the application processed arguments Job: prepare for the removal of old style result plugins
-
由 Cleber Rosa 提交于
The `output` attribute was, at some point, meant to hold the information about where the result data should be sent to. Then, the processed arguments started to be used. In the end, it has no purpose, so let's remove it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This is simple name change. The goal is to make it clear that the current "result" attribute is a ResultProxy (old style result plugin) instance. The idea is that a new attribute called "result" will really be a Result instance. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
It's been a common pattern in Avocado to expose the complete set of processed arguments to a lot of core components. This makes the dependencies and interfaces between these components much less clear. As we clean up the Result class to make it just a result data container, let's remove the reference to the processed arguments and keep track of only the information that's relevant to a given Result implementation. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
This change combines the activation of all old style result plugins into a single method. It also names it accordingly, so it's easier to spot it when it's finally removed. Another reason for this change is that the old docstring was outdated and inaccurate. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Ademar de Souza Reis Jr 提交于
avocado.utils.data_structures: add author
-
由 Ademar de Souza Reis Jr 提交于
The loop that waits for the early test status has a call to sleep(0), which turns it into an almost busy-loop. Changing it to sleep(0.01) consumes less CPU without performance degradation (might actually make things run faster according to my tests). This change also makes it more consistent with the similar loop for the actual test status. On my machine, before this change running "passtest.py" 100 times would result in almost 250000 calls to time.sleep(). After the change, the number gets down to 600 (tracked via python cProfile module). Signed-off-by: NAdemar de Souza Reis Jr <areis@redhat.com>
-
由 Ademar de Souza Reis Jr 提交于
We have a loop to check for the test status which works like this: status = check_status() while not timeout or status: status = check_status() sleep(step) ... And step was defined as 0.1 (sec). At least on my machine, this was making avocado quite slow, as it was introducing a 0.1 sec sleep between each test execution. This commit changes step to 0.01 secs, making Avocado respond much faster. Notice there's no significant performance penalty with this change. sleep(0.01) is a long time for modern CPUs and schedulers. Benchmark is quite straighforward: TESTS=$(for i in $(seq 1 100); do echo passtest.py; done) BEFORE: $ time ./scripts/avocado run $TESTS --silent real 0m14.007s user 0m3.376s sys 0m3.112s AFTER: $ time ./scripts/avocado run $TESTS --silent real 0m4.741s user 0m2.994s sys 0m2.953s Signed-off-by: NAdemar de Souza Reis Jr <areis@redhat.com>
-
- 12 10月, 2016 1 次提交
-
-
由 Harish S 提交于
-
- 11 10月, 2016 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
- 10 10月, 2016 7 次提交
-
-
由 Amador Pahim 提交于
Since the test logger is not yet enabled when plugins are in action, we should use avocado.app logger to warn user about the deprecated option --multiplex. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
The --multiplex option was renamed to mux-yaml, making the former parameter args.multiplex be now known as mux_yaml internally. This patch changes the option name in remote.runner so it can work with the new option. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Docs: document optional packages installation
-
由 Cleber Rosa 提交于
Some pieces of Avocado are distributed as optional packages, let's document that fact and how to install them using both RPM and source based installs. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Lukáš Doktor 提交于
Recently I fixed a bug where test which asks for input hangs for infinity but I forgot to add unittest for it. Let's add it now. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
* https://github.com/avocado-framework/avocado: Sysinfo: make journalctl quiet on cursor acquisition Functional Tests: sysinfo collection may trigger unexpected messages spell.ignore: add words to ignore list
-
- 09 10月, 2016 3 次提交
-
-
由 Cleber Rosa 提交于
On environments where there are no journals available, journalctl may output error messages such as "No journal files were found", unless `--quiet` is given as an option. The other call to journalctl already does that, but we missed in the first call (that does the cursor acquisition). Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
It turns out that, due to other issues, sysinfo collection may trigger unwanted output. Since these changed tests are really about the jobscripts plugin execution, and accordingly to the vast majority of other functional tests, let's disable sysinfo to speed them up and avoid these noises. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 07 10月, 2016 15 次提交
-
-
由 Cleber Rosa 提交于
-
由 Ademar de Souza Reis Jr 提交于
avocado.utils.git: Don't produce check output
-
由 Amador Pahim 提交于
avocado.utils.iso9660: Several improvements and cleanups [v3]
-
由 Amador Pahim 提交于
Docker improvements [v3]
-
由 Amador Pahim 提交于
Docs: describe OpenSUSE support in Avocado
-
由 Dmitry Monakhov 提交于
This works great to hosts wich many containers Example: avocado run --docker debian-avocado-test /bin/true DOCKER : Container id '0f9ebae391183937fb6e98c50cc10f4927963140caf6e63fd108876a6ac7270f' DOCKER : Container name 'job-2016-10-02T07.14-a404c72.avocado' ..
-
由 Dmitry Monakhov 提交于
Let's add dockefile example. This greatly simplify avocado test development because allow to create hermetic devel images w/o breaking system instalation Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Dmitry Monakhov 提交于
Docker run enviroments mostly configured by extra run options. Let's allow runnter to pass it. #Example: Run test in remote docker with privileged commands allowed(mount, kvm, etc) and bindmount local directory '/vol' to '/v' inside container $ avocado run --docker-options="-H=tcp://remote:2375 --privileged -v /vol:/v" \ --docker dmonakhov/debian-avocado passtest.py
-
由 Sergey Bronnikov 提交于
The OpenSUSE project ships the LTS versions of Avocado. Let's document that so users on that distro can get a head start using official distro packages if they choose to do so. Signed-off-by: NSergey Bronnikov <sergeyb@openvz.org> Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
No actual changes, just style fixes and docstring updates. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Sometimes the iso9660/isofs is not loaded, let's try to modprobe it and then re-check whether iso9660 is supported. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The Iso9660Mount requires root, but with this patch it can also use normal user with sudo configured. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The `avocado.utils.process` allows the use of sudo, but it might not be always enabled/configured in the system. This method should allow detecting whether it is or is not available. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The Iso9660Mount defines "mnt_dir" variable, which is frequently used in tests to make the content of the image available. This is not supported by other providers, which adds complexity to the code around mnt_dir. This patch makes "mnt_dir" property part of the API and implements it in all current providers. Note that the "mnt_dir" feature is currently uses the "Iso9660Mount" features, therefor the user must be root and the mount has to be available, otherwise one gets exception when he tries to use "mnt_dir". Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The usual use of the git library is to get latest (or some) version, quite frequently into a unique tmp dir. Let's disable recording it's output for --output-check. Signed-off-by: NPhilipp Wagner <imphil@philipp-wagner.com> Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 05 10月, 2016 3 次提交
-
-
由 Cleber Rosa 提交于
-
由 Lukáš Doktor 提交于
The main purpose of multiplexer is to create variants. This patch adds a check which makes sure the expected number of tests were executed. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This patch avoids avocado crash on empty multiplex yaml file. Empty file contains basically nothing and that is how it's handled now. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-