Re: [PATCH v2 1/2] kunit: add fallback for os.sched_getaffinity

From: Tamir Duberstein
Date: Sat Dec 07 2024 - 13:53:28 EST


On Tue, Nov 5, 2024 at 3:36 AM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> On Sat, 2 Nov 2024 at 20:10, Tamir Duberstein <tamird@xxxxxxxxx> wrote:
> >
> > Python 3.13 added os.process_cpu_count as a cross-platform alternative
> > for the Linux-only os.sched_getaffinity. Use it when it's available and
> > provide a fallback when it's not.
> >
> > This allows kunit to run on macOS.
> >
> > Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
> > ---
>
> Looks plausible enough to me. Thanks very much!
>
> Reviewed-by: David Gow <davidgow@xxxxxxxxxx>
>
> Cheers,
> -- David

Thanks David! While the next patch is still plausibly undergoing
discussion, would it be possible to pick this one up? Without it
kunit.py is not usable on macOS.