Re: [PATCH v2 3/5] qemu-iotests: Support varargs syntax in FilePaths

2020-08-25 Thread Max Reitz
On 21.08.20 01:54, Nir Soffer wrote: > Accept variable number of names instead of a sequence: > > with FilePaths("a", "b", "c") as (a, b, c): > > The disadvantage is that base_dir must be used as kwarg: > > with FilePaths("a", "b", base_dir=soc_dir) as (sock1, sock2): > > But this is mo

[PATCH v2 3/5] qemu-iotests: Support varargs syntax in FilePaths

2020-08-20 Thread Nir Soffer
Accept variable number of names instead of a sequence: with FilePaths("a", "b", "c") as (a, b, c): The disadvantage is that base_dir must be used as kwarg: with FilePaths("a", "b", base_dir=soc_dir) as (sock1, sock2): But this is more clear and calling optional argument as positional ar