- 28 1月, 2016 4 次提交
-
-
由 Cleber Rosa 提交于
Avocado doesn't intent to support the use of these attributes by test (writers), so let's at the very least hide them. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The implementation of basedir from Avocado Test is also sufficient for SimpleTest now that the `filename` property is implemented. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
SIMPLE tests are backed by files, executable ones. So, it makes sense to have the `filename` property accordingly. The base Avocado Test class implementation of `basedir` applies to SimpleTest as well with this implementation. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Since basedir is closely related to `filename` and `datadir`, let's also make it a property for coherency. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 27 1月, 2016 7 次提交
-
-
由 Cleber Rosa 提交于
It now becomes a first class citizen, with proper documentation. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Some Test types are not backed directly by files, and thus do not have a datadir. One example is Avocado-VT's VirtTest class. Because of that, and because other custom Test types may adhere to the same logic of not having a datadir, let's make Avocado's base test class more robust against a `None` datadir. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Now that 7c967bb0 hid the methods that record/check stdout/stderr, let's also hide the attributes that hold their paths. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Let's just mirror the parameter order of the super class. It's just easier on the eyes. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Amador Pahim 提交于
Using an unknown option in a given subcommand leads argparse to show the main avocado usage instructions. This patch makes the argparse show the subcommand help instead. Also, argparse error exit code now matches error_codes.AVOCADO_FAIL, which makes more sense than error_codes.AVOCADO_JOB_FAIL. Reference:https://trello.com/c/o0TpH9aeSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lucas Meneghel Rodrigues 提交于
Test namespace cleanup
-
- 26 1月, 2016 4 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
avocado.core.test: PEP8 Fix
-
由 Lucas Meneghel Rodrigues 提交于
test_interrupt.py: Finish change a1afd91b
-
由 Lucas Meneghel Rodrigues 提交于
Turns out I thought out a1afd91b poorly, I needed to use a more encompassing try/except block, and replicate the block in the two tests that do psutil shenanigans. Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
由 Lucas Meneghel Rodrigues 提交于
Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
- 25 1月, 2016 3 次提交
-
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
The reason being that `datadir` can then be properly documented as first class citizens so that Test class users (test writers) can rely on it. Other reason is that that it can be overloaded by inherited classes such as `SimpleTest`, without the need to (re-)set other attributes that depend on it. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
The methods `record_reference_stdout`, `record_reference_stderr` `check_reference_stdout` and `check_reference_stderr` are publicly visible, but are not intended to be used by test writers and are not intended to have API stability. Let's rename them so that they're hidden from the Avocado test writer. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
- 21 1月, 2016 2 次提交
-
-
由 Cleber Rosa 提交于
-
由 Amador Pahim 提交于
Currently replay is using status.mapping as the list of valid status for the --replay-test-status option. But status.mapping has some internal status that users should not have to deal with. This patch creates a user facing status which is a subset with only the options relevant for the users and makes the job replay feature to take advantage of it. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
- 20 1月, 2016 12 次提交
-
-
由 Amador Pahim 提交于
This patch is merging the concepts of TEST_NA and SKIP, making the consequent status more relevant for the users. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
Turns out that setting the argument value directly does not suit most of our code. Let's revert back to the old way of setting the remote/vm result/runner until we implement proper runner and result plugin interfaces. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
For parity of features with the remote plugin, let's add the SSH port as an option of the VM plugin as well. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
the replay_parser is only needed during __init__, it does not need to be stored in self. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
When using replay, one can think of the replay_multiplex as of the normal multiplex files, only it's already processed. This patch stores the retrieved multiplex file (if not overridden) directly in multiplex_files and adds support in avocado.core.job to handle this situation. Actually some future plugins might benefit from this and create their own inherited Mux class instead of our multiplexer. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The replay_chdir is not useful for avocado.core, therefor it should live within the replay plugin. Unless the user uses some incompatible plugin which also changes the dir it should work. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The "make link" target purpose is to help avocado developers to prepare environment to run avocado from sources including all subprojects. Nowadays it requires to run "setup.py develop" manually, but let's assume wast majority of users of "make link" feature use "setup.py develop --user" and call it automatically for each subproject (if they support that). This way simple "make link" prepares the environment to run avocado from sources. It can also be used when new targets (plugins) are added without the need to think which subproject needs to be updated. NOTE: The subprojects are responsible to add the "python setup.py develop --user" into the "link" and "unlink" targets. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 19 1月, 2016 4 次提交
-
-
由 Lukáš Doktor 提交于
selftests/test_interrupt.py: Handle timing problems
-
由 Lucas Meneghel Rodrigues 提交于
avocado.tests Remove tests moved to avocado-misc-tests repo
-
由 Lucas Meneghel Rodrigues 提交于
In InterruptTest.test_well_behaved, sometimes it takes a bit extra time for avocado to end, causing a psutil.NoSuchProcess exception by the time the test tries to access .cmdline() in the Process() object. That condition means the process is already out of the process list, which means the test passed. Let's handle the NoSuchProcess exception accordingly. Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
由 Amador Pahim 提交于
These tests were moved to https://github.com/avocado-framework/avocado-misc-testsSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
- 18 1月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
[V2] avocado.core.runner: Fix problems with exceptions that can't be pickled
-
- 16 1月, 2016 3 次提交
-
-
由 Lucas Meneghel Rodrigues 提交于
I've noticed this when writing tests using the boto3 (Amazon AWS) API - for some exceptions, not all the arguments of the exception can be pickled, leading to the following crash: (1/2) scylla_longevity.py:LongevityTest.test_20_minutes: - Avocado crashed: TypeError: ('__init__() takes exactly 3 arguments (2 given)', <class 'botocore.exceptions.ClientError'>, ("An error occurred (InvalidAMIID.NotFound) when calling the RunInstances operation: The image id 'ami-20776841' does not exist",)) Traceback (most recent call last): File "/home/lmr/Code/avocado.lmr/avocado/core/job.py", line 451, in _run timeout=self.timeout) File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 368, in run_suite deadline) File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 284, in run_test if test_status.interrupt: File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 82, in __getattribute__ self._tick() File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 111, in _tick msg = self.queue.get() File "/usr/lib/python2.7/multiprocessing/queues.py", line 378, in get return recv() TypeError: ('__init__() takes exactly 3 arguments (2 given)', <class 'botocore.exceptions.ClientError'>, ("An error occurred (InvalidAMIID.NotFound) when calling the RunInstances operation: The image id 'ami-20776841' does not exist",)) Please include the traceback info and command line used on your bug report Report bugs visiting https://github.com/avocado-framework/avocado/issues/new Since we can't restore all the arguments of this exception upon recv, we have to handle any exception that happens here and break out from the _tick() loop. Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
-
由 Cleber Rosa 提交于
-
由 Amador Pahim 提交于
Doccument the --replay option for the run command. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-