python/machine.py: Don't modify state in _base_args()
commit652809dfa665860c1ea4622c540a30fbe18dc9e7
authorJohn Snow <jsnow@redhat.com>
Tue, 6 Oct 2020 23:58:01 +0000 (6 19:58 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 20 Oct 2020 13:37:57 +0000 (20 09:37 -0400)
tree0cb79a337e5a0e71699f6476f13eb4ef0d1d26ab
parentc5e61a6da84397fe8c2af9e381d8a619a3e32c10
python/machine.py: Don't modify state in _base_args()

Don't append to the _remove_files list during _base_args; instead do so
during _launch. Rework _base_args as a @property to help facilitate
this impression.

This has the additional benefit of making the type of _console_address
easier to analyze statically.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20201006235817.3280413-5-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine.py
python/qemu/qtest.py