- 24 2月, 2017 6 次提交
-
-
由 Lukáš Doktor 提交于
I'm not 100% sure, but I don't see a benefit in allowing people to override test status from inside test. They are suppose to use assertions, or `self.fail`-like methods. With this change it'd be harder to manually override the test status (as can be seen on updated unittests) but we minimize the accidental write into `self.status` variable, which can lead to confusing results. Note we can consider adding `set_status` method to allow setting this property, but I'd like to avoid allowing direct `self.status = ` usage. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The `debugdir` and `resultsdir` are not used in Avocado. They were inherited from Avocado-vt, but there is no point in defining them in Avocado itself as Avocado-vt creates them anyway. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
There is no point in making sysinfo-collection variables accessible from test, nor does it make sense to share it in test status. This patch prepends `__` to all sysinfo variables used in Test and removes it from the `preserve_attr` dictionary (used in reporting test's status) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Some users reported unexpected behavior which turned out to be caused by them overriding test variables which were used by Avocado. Let's turn the read-only-from-outside ones into properties to decrease the possibility of users accidentally overriding them. Note this does not means users can't override them, it just means they would have to try a bit harder. Second benefit is that they will be docummented in our documentation via sphinx. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This way it's easier to find what is available to our users from inside tests, plus it will be docummented by sphinx. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Properties are not part of the self.__dict__, let's use getattr instead. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 23 2月, 2017 1 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Added methods in memory library that gets and sets a transparent hugepage values.
-
- 22 2月, 2017 1 次提交
-
-
由 Santhosh G 提交于
GenIOException Base Exception class has been created for all IO related exceptions. Also adds write_file_or_fail method in genio library which writes to a file and raises exception when write fails. Signed-off-by: NSanthosh G <santhog4@linux.vnet.ibm.com>
-
- 21 2月, 2017 3 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Mateusz Wagner 提交于
Signed-off-by: NMateusz Wagner <mateuszwag@gmail.com>
-
- 19 2月, 2017 2 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 18 2月, 2017 1 次提交
-
-
由 Gerard Braad 提交于
Signed-off-by: NGerard Braad <me@gbraad.nl>
-
- 17 2月, 2017 5 次提交
-
-
由 Lukáš Doktor 提交于
The api-utils description is rather simplistic. Let's add a line related to the purpose of `utils` to set the goals for writing custom libraries. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
I noticed we do not describe the ``fail_on`` decorator anywhere, nor we talk about the test statuses (except of skip). Let's sumarize this important topic early in the WritingTests section as using proper results speed ups the review of failed tests. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
While logging some basic info about job, we print "logs" followed by the value of `data_dir.get_logs_dir`. The problem is, that this value is only used when `--job-results-dir` is not used and even then this information is not really relevant to this job. Let's log the actual log dir of this particular job instead. Note we already log the `logs` dir in our UI, but not in the job log, therefor this information is not duplicate. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The `datadir` can return different locations based on user access rights. We state this in documentation, the `avocado config --datadir` mentions this as well, I don't see a reason for spamming every test results with this information. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 16 2月, 2017 8 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
The fact that we are not raising exceptions when the remote job fails is making the local job to keep executing as if nothing bad happened. Let's raise an exception when the remote job fails so we can inform the local job and also show to the user the remote error message. Reference: https://trello.com/c/kn9WpdwuSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
checkall runs `ls` twice in the job-results dir. Once before the selftests and once again after the tests, comparing the outputs to make sure there's no new results there after the selftests. When the job-results does not exist in advance (the case in travis environments), the message 'ls: cannot access /home/travis/avocado/job-results: No such file or directory' is shown in the logs. The message is harmless and does not affect the check. Let's just suppress the stderr from the `ls` command in that check. Reference: https://trello.com/c/IBoLAJjfSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
Previously we were directly using the yaml.Loader, which is shared across all `yaml` instances. This patch creates a `_BaseLoader` with the basic set of constructors. That one is copied and updated of the run-time data (debug/non-debug) during the `_create_from_yaml` to allow loading debug and non-debug files in a single execution without overriding the same loader. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
The requirement is meant only for the runner remote plugin, and not for the base avocado package. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
We are returning the stdout and the stderr of the fabric remote execution all together inside the CmdResult.stdout Let's separate them properly. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
This method was copied (instead of moved) to the module itself. Let's remove it at once and avoid duplicated/unused code. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 15 2月, 2017 3 次提交
-
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com> * https://github.com/avocado-framework/avocado: Remove the TESTS line from the UI
-
由 Amador Pahim 提交于
This information is not accurate since it does not consider the number of variants. Also, if it was accurate, it would be redundant. Let's just remove it. Reference: https://trello.com/c/62I3ABZ0Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
fabric code as packged by Fedora 24 requires python-crypto, but does not set this as a package requirement. This prevents package builds on this distro version. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 14 2月, 2017 1 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 13 2月, 2017 5 次提交
-
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
The virt/vt plugin names contain '-'s and not '_'s. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 11 2月, 2017 4 次提交
-
-
由 Amador Pahim 提交于
Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Amador Pahim 提交于
The job has the number of tests, but not the total of test executions. This information comes from the result attribute 'tests_total', updated by the runner. This patch changes the tap plugin so it can use the correct information. Reference: https://trello.com/c/tiusKNNjSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
The start_tests() method from results plugins is not used anymore. It was replaced by the pre_tests entry point in plugins_interfaces. This patch is just a cleanup. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-