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

2025-01-13 Thread Tamir Duberstein
+Shuah Khan On Sat, Dec 7, 2024 at 1:52 PM Tamir Duberstein wrote: > > 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. Shuah, could you pick this if you agree? Cheers, Tamir

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

2024-12-07 Thread Tamir Duberstein
On Tue, Nov 5, 2024 at 3:36 AM David Gow wrote: > > On Sat, 2 Nov 2024 at 20:10, Tamir Duberstein 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.

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

2024-11-05 Thread David Gow
On Sat, 2 Nov 2024 at 20:10, Tamir Duberstein 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: Ta

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

2024-11-02 Thread Tamir Duberstein
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 --- tools/testing/kunit/kunit.py | 11 ++-