[Avocado-devel] remove pickle code for avocado-vt

Andrei Stepanov astepano at redhat.com
Wed Jun 8 10:28:28 UTC 2016


Hi.

I would propose  to remove pickle code from avocado-vt. This code is
running each time as a test is finished. The purpose of this code is to
preserve running VM for next test.

Or, at least to turn this code off by default and make it optional.

In ordinary setup/testrun we do not need this feature. And it greatly
complicates debug and increases requirements to tests.

For example, today I got next error:

Reproduced traceback from:
/mnt/tests/spice/qe-tests/avocado-vt/avocado_vt/test.py:402
Traceback (most recent call last):
  File "/mnt/tests/spice/qe-tests/avocado-vt/avocado_vt/test.py", line 178,
in runTest
    self._runTest()
  File "/mnt/tests/spice/qe-tests/avocado-vt/avocado_vt/test.py", line 338,
in _runTest
    env.save()
  File "/mnt/tests/spice/qe-tests/avocado-vt/virttest/utils_env.py", line
188, in save
    cPickle.dump(self.data, f)
  File "/usr/lib64/python2.7/copy_reg.py", line 84, in _reduce_ex
    dict = getstate()
  File "/usr/lib64/python2.7/multiprocessing/queues.py", line 363, in
__getstate__
    assert_spawning(self)
  File "/usr/lib64/python2.7/multiprocessing/forking.py", line 52, in
assert_spawning
    ' through inheritance' % type(self).__name__
RuntimeError: SimpleQueue objects should only be shared between processes
through inheri
tance


After this fail test is not finished it continues running.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20160608/99137b0a/attachment.htm>


More information about the Avocado-devel mailing list