- 13 10月, 2016 2 次提交
-
-
由 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>
-
- 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 11 次提交
-
-
由 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>
-
由 Lukáš Doktor 提交于
Recently we created separate `yaml2mux` plugin, which keeps using the `--multiplex` argument. The connection between yaml2mux and multiplex is not really obvious and the separation was meant to bring the order to the avocado params system. This is another step which replaces the `--multiplex|-m` with `--mux-yaml|-m` and makes it more obvious that it's related to `yaml` files and it's also related to `multiplexation`. You might notice that the old `-m` was kept. It's very convenient and also allows coexisting of old and new versions (useful eg. in remote executions). Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Currently `replay` has hardcoded treating of `--multiplex`, which is not systematic and even now allows some unhandled errors (like --mux-filter along with replay-test-status). With this patch I propose to ignore all multiplex related options and use the one from the job and process the mux only when the user uses `--replay-ignore mux`. This means it does not allow mixing of previous job's mux with new options, on the other hand it's simple and easily understandable: 1. no `--replay-ignore mux` => all --mux options are ignored and the original Mux is used 2. `--replay-ignore mux` => old Mux is ignored and full new Mux is used including system-wide args, --mux options and the yaml parser (-m) To make things clear this patch always logs a warning notifying the user about the current situation. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The --replay-ignore is a list of arguments, but the default is None, which requires special hendling in the code. Let's change it to list and remove the special handling. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This complex patch replaces the custom `--multiplex` handling with a brand new plugin called `yaml_to_mux`. This touches several place and removes the `yaml` functionality from the avocado core and moves it into the plugin code. There are still 2 references from plugins to the `yaml_to_mux` plugin which are not defined as a public API yet. 1. remote runner - which allows copying --multiplex files to remote machine. 2. replay - which allows overriding of the job's mux variants with the --multiplex files. Note that by doing this you lose the system-wide options. It is described in the warning message. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The mux need to support debugging the options. This is a basic implementation which allows requesting mux to use TreeNodeDebug. Then it's the plugin's job to check whether mux uses debug (`mux.debug`) and act accordingly. In this basic implementation the debug is only enabled for `--multiplex` and `@None` is used for other injects (like `--mux-inject`) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The `--multiplex` is about to be changed into a separate plugin. It does not sound fair to keep it as default positional argument of the `multiplex` command. Let's sync the naming scheme and require `--multiplex` for it. This also means the `-m` is optional so one can run `avocado multiplex` without arguments to get default multiplex values. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The option changed from --multiplex-files to `--multiplex` long time ago but we kept using the original `multiplex_files` destination for it. This is not systematic and can lead to problems in the future. Let's change it once for all. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-