Re: [PATCH v3 3/3] selftests/resctrl: Move cleanups out of individual tests

2024-02-26 Thread Maciej Wieczor-Retman
On 2024-02-23 at 13:18:32 -0800, Reinette Chatre wrote: >Hi Maciej, > >On 2/22/2024 4:07 AM, Maciej Wieczor-Retman wrote: >> diff --git a/tools/testing/selftests/resctrl/resctrl_tests.c >> b/tools/testing/selftests/resctrl/resctrl_tests.c >> index 161f5365b4f0..bae08d1221ec 100644 >> --- a/tools/t

Re: [PATCH v3 3/3] selftests/resctrl: Move cleanups out of individual tests

2024-02-23 Thread Reinette Chatre
Hi Maciej, On 2/22/2024 4:07 AM, Maciej Wieczor-Retman wrote: > diff --git a/tools/testing/selftests/resctrl/resctrl_tests.c > b/tools/testing/selftests/resctrl/resctrl_tests.c > index 161f5365b4f0..bae08d1221ec 100644 > --- a/tools/testing/selftests/resctrl/resctrl_tests.c > +++ b/tools/testing/

[PATCH v3 3/3] selftests/resctrl: Move cleanups out of individual tests

2024-02-22 Thread Maciej Wieczor-Retman
Every test calls its cleanup function at the end of it's test function. After the cleanup function pointer is added to the test framework this can be simplified to executing the callback function at the end of the generic test running function. Make test cleanup functions static and call them from