mbox series

[-next,v3,0/5] Optimize and bugfix for cpu-on-off-test.sh

Message ID 20220905133615.139026-1-zhaogongyi@huawei.com
Headers show
Series Optimize and bugfix for cpu-on-off-test.sh | expand

Message

Zhao Gongyi Sept. 5, 2022, 1:36 p.m. UTC
1. Correct log info
2. Replace exit with return to make the test exit gracefully
3. Delete fault injection related code
4. Reserve one cpu online when the test offline all cpus
5. Add log info when run full test successfully

Changes in v3:
  - Remove config file for patch 2
  - Update information of cover letter

Changes in v2:
  - Update change log of patch 2
  - Update exiting value to avoid incorrect report for patch 2
  - Keep online_cpu_expect_fail() and offline_cpu_expect_fail() for
    patch 3

Zhao Gongyi (5):
  selftests/cpu-hotplug: Correct log info
  selftests/cpu-hotplug: Use return instead of exit
  selftests/cpu-hotplug: Delete fault injection related code
  selftests/cpu-hotplug: Reserve one cpu online at least
  selftests/cpu-hotplug: Add log info when test success

 tools/testing/selftests/cpu-hotplug/Makefile  |   2 +-
 tools/testing/selftests/cpu-hotplug/config    |   1 -
 .../selftests/cpu-hotplug/cpu-on-off-test.sh  | 140 +++++-------------
 3 files changed, 37 insertions(+), 106 deletions(-)
 delete mode 100644 tools/testing/selftests/cpu-hotplug/config

--
2.17.1

Comments

Shuah Khan Sept. 7, 2022, 9:48 p.m. UTC | #1
On 9/5/22 07:36, Zhao Gongyi wrote:
> 1. Correct log info
> 2. Replace exit with return to make the test exit gracefully
> 3. Delete fault injection related code
> 4. Reserve one cpu online when the test offline all cpus
> 5. Add log info when run full test successfully
> 
> Changes in v3:
>    - Remove config file for patch 2
>    - Update information of cover letter
> 

Thank you fixing the issues in v2. Now applied to linux-kselftest next

thanks,
-- Shuah