avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
83 stars 241 forks source link

error module could not get test case exception in avocado framework #515

Open suqinhuang opened 8 years ago

suqinhuang commented 8 years ago

" from autotest.client.shared import error " is used in old cases which is developed based on autotest framework, and it's requested to keep it as there are lots of people keep on using autotest framework. @PandaWei But if we run these cases with avocado framework, we cannot get the exception of the case, so need to improve it to trace test case.

e.g following is the debug info of rng_bat test case.

Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado_plugins_vt-35.0-py2.7.egg/avocado_vt/test.py:393 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/avocado_plugins_vt-35.0-py2.7.egg/avocado_vt/test.py", line 179, in runTest raise exceptions.TestFail(details) TestFail: Unable to read random numbers from guest. [context: Read virtio-rng device to get random number]

PandaWei commented 8 years ago

I totally agree with your proposal metioned at #609