" 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]
" 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]