iotests: replace mutable list default args
authorJohn Snow <jsnow@redhat.com>
Tue, 31 Mar 2020 00:00:04 +0000 (20:00 -0400)
committerMax Reitz <mreitz@redhat.com>
Tue, 5 May 2020 11:17:36 +0000 (13:17 +0200)
commit4eabe0515ad7947da566fa52f9bd29e6fc1e6dcc
treec79d07cf5854e4769aa58bb98b5e74ee3b1838fc
parent368e06200320fd1c046788832531c0148ccbdf11
iotests: replace mutable list default args

It's bad hygiene: if we modify this list, it will be modified across all
invocations.

(Remaining bad usages are fixed in a subsequent patch which changes the
function signature anyway.)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200331000014.11581-5-jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py