diff options
author | 2023-04-14 09:43:58 -0700 | |
---|---|---|
committer | 2023-04-14 11:13:18 -0600 | |
commit | 50ad2fb7ec2b18186b8a4fa1c0e00f78b3de5119 (patch) | |
tree | 851940205e01b6d223b2a3c661fb8655519abfdf /tools/testing/selftests/Makefile | |
parent | selftests/resctrl: Remove duplicate codes that clear each test result file (diff) | |
download | linux-50ad2fb7ec2b18186b8a4fa1c0e00f78b3de5119.tar.gz linux-50ad2fb7ec2b18186b8a4fa1c0e00f78b3de5119.tar.bz2 linux-50ad2fb7ec2b18186b8a4fa1c0e00f78b3de5119.zip |
selftests/resctrl: Fix incorrect error return on test complete
An error snuck in between two recent conflicting changes:
Until recently ->setup() used negative values to indicate
normal test termination. This was changed in
commit fa10366cc6f4 ("selftests/resctrl: Allow ->setup() to return
errors") that transitioned ->setup() to use negative values
to indicate errors and a new END_OF_TESTS to indicate normal
termination.
commit 42e3b093eb7c ("selftests/resctrl: Fix set up schemata with 100%
allocation on first run in MBM test") continued to use
negative return to indicate normal test termination.
Fix mbm_setup() to use the new END_OF_TESTS to indicate
error-free test termination.
Fixes: 42e3b093eb7c ("selftests/resctrl: Fix set up schemata with 100% allocation on first run in MBM test")
Reported-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/lkml/bb65cce8-54d7-68c5-ef19-3364ec95392a@linux.intel.com/
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/Makefile')
0 files changed, 0 insertions, 0 deletions