On 2/27/20 5:54 AM, Vladimir Sementsov-Ogievskiy wrote: > > Clean code movement, no changes. If test passes, it should be correct :) > > The only thing: I'd prefer not exporting global variables and use > bitmaps.GROUPS instead (even then, it's not very good interface but..) > > with or without it: > Reviewed-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Hm, yeah -- it's not great, it's definitely just a bit of a quick shuffle instead of a more serious effort at a refactor to provide bitmap services for all tests. I don't think it's worth the time just yet to make a serious attempt at making this module bigger -- but maybe there is work that can be done at providing bitmap management services targeted for use outside of testing code. (i.e. into the python/ folder somewhere.) Well, I can just do this: " import bitmaps from bitmaps import EmulatedBitmap " and bitmaps.GROUPS makes it a little more obvious in-context at the expense of one extra import line, so I'll do that.
- [PATCH 0/6] block: add block-dirty-bitmap-pop... John Snow
- [PATCH 2/6] qmp: expose block-dirty-bitm... John Snow
- Re: [PATCH 2/6] qmp: expose block-di... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 2/6] qmp: expose bloc... John Snow
- [PATCH 4/6] iotests: add hmp helper with... John Snow
- Re: [PATCH 4/6] iotests: add hmp hel... Vladimir Sementsov-Ogievskiy
- [PATCH 3/6] iotests: move bitmap helpers... John Snow
- Re: [PATCH 3/6] iotests: move bitmap... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 3/6] iotests: move bi... John Snow
- [PATCH 1/6] block: add bitmap-populate j... John Snow
- Re: [PATCH 1/6] block: add bitmap-po... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 1/6] block: add bitma... John Snow
- Re: [PATCH 1/6] block: add b... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 1/6] block: ... John Snow
- Re: [PATCH 1/6] blo... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 1/6]... John Snow
- [PATCH 5/6] qmp.py: change event_wait to... John Snow
- Re: [PATCH 5/6] qmp.py: change event... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 5/6] qmp.py: change e... John Snow